Skip to content

Commit bcf4ad7

Browse files
committed
check for lineItems again
1 parent 91b8b43 commit bcf4ad7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/compounds/Document/Document.jsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,15 @@ const Document = ({ document, addClass }) => {
7676
<div className='address'>{shipFrom.text}</div>
7777
</div>
7878
</div>
79-
<LineItemsTable
80-
lineItems={lineItems}
81-
subtotalPrice={subtotalPrice}
82-
taxAmount={taxAmount}
83-
shippingPrice={shippingPrice}
84-
totalPrice={totalPrice}
85-
/>
79+
{lineItems && (
80+
<LineItemsTable
81+
lineItems={lineItems}
82+
subtotalPrice={subtotalPrice}
83+
taxAmount={taxAmount}
84+
shippingPrice={shippingPrice}
85+
totalPrice={totalPrice}
86+
/>
87+
)}
8688
{turnaroundTime && <h5><b>Turnaround Time:</b> {turnaroundTime}</h5>}
8789
</Offcanvas.Body>
8890
</Offcanvas>

0 commit comments

Comments
 (0)