From 2d658e564a3c1cd0dec13903fc7df52bab50df15 Mon Sep 17 00:00:00 2001 From: Amine Date: Thu, 24 Oct 2024 10:25:36 +0100 Subject: [PATCH] use item_subtotal instead of total --- storefront/components/global/header/cart/cart-context.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storefront/components/global/header/cart/cart-context.tsx b/storefront/components/global/header/cart/cart-context.tsx index dc14665..9a17c2f 100644 --- a/storefront/components/global/header/cart/cart-context.tsx +++ b/storefront/components/global/header/cart/cart-context.tsx @@ -164,8 +164,8 @@ export function CartProvider({ return { ...prev, + item_subtotal: optimisticTotal || 0, items: optimisticItems, - total: optimisticTotal || 0, }; }); });