fix: hide delivery line in order summary when pickup is selected
quote was non-null after entering a delivery address, so the delivery fee row showed even after switching back to pickup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c130f9bcdf
commit
6fea1f2be1
@ -576,7 +576,7 @@ export default function CartDrawer() {
|
|||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>
|
||||||
<span>Items</span><span>{fmt(subtotal)}</span>
|
<span>Items</span><span>{fmt(subtotal)}</span>
|
||||||
</div>
|
</div>
|
||||||
{quote && (
|
{fulfillmentType === 'delivery' && quote && (
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>
|
||||||
<span>Delivery</span><span>{fmt(quote.totalCents)}</span>
|
<span>Delivery</span><span>{fmt(quote.totalCents)}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -649,7 +649,7 @@ export default function CartDrawer() {
|
|||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>
|
||||||
<span>Items</span><span>{fmt(subtotal)}</span>
|
<span>Items</span><span>{fmt(subtotal)}</span>
|
||||||
</div>
|
</div>
|
||||||
{quote && (
|
{fulfillmentType === 'delivery' && quote && (
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '2px' }}>
|
||||||
<span>Delivery</span><span>{fmt(quote.totalCents)}</span>
|
<span>Delivery</span><span>{fmt(quote.totalCents)}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user