Skip to content

Commit

Permalink
use item_subtotal instead of total
Browse files Browse the repository at this point in the history
  • Loading branch information
diboune committed Oct 24, 2024
1 parent 7c845b2 commit 2d658e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storefront/components/global/header/cart/cart-context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ export function CartProvider({

return {
...prev,
item_subtotal: optimisticTotal || 0,
items: optimisticItems,
total: optimisticTotal || 0,
};
});
});
Expand Down

0 comments on commit 2d658e5

Please sign in to comment.