We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91b8b43 commit bcf4ad7Copy full SHA for bcf4ad7
src/compounds/Document/Document.jsx
@@ -76,13 +76,15 @@ const Document = ({ document, addClass }) => {
76
<div className='address'>{shipFrom.text}</div>
77
</div>
78
79
- <LineItemsTable
80
- lineItems={lineItems}
81
- subtotalPrice={subtotalPrice}
82
- taxAmount={taxAmount}
83
- shippingPrice={shippingPrice}
84
- totalPrice={totalPrice}
85
- />
+ {lineItems && (
+ <LineItemsTable
+ lineItems={lineItems}
+ subtotalPrice={subtotalPrice}
+ taxAmount={taxAmount}
+ shippingPrice={shippingPrice}
+ totalPrice={totalPrice}
86
+ />
87
+ )}
88
{turnaroundTime && <h5><b>Turnaround Time:</b> {turnaroundTime}</h5>}
89
</Offcanvas.Body>
90
</Offcanvas>
0 commit comments