summaryrefslogtreecommitdiff
path: root/src/lib/cart/components/Cartheader.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-09-02 10:54:00 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-09-02 10:54:00 +0700
commit702b5d9b6e215ad812fadaff3325e1e6164d3b24 (patch)
treedfcd471df00e29ac06a839998c50df1c221fb052 /src/lib/cart/components/Cartheader.jsx
parenta2221f7b66f259cddc83ae95c159b30d7e5612ce (diff)
<iman> update pop up tambah keranjang
Diffstat (limited to 'src/lib/cart/components/Cartheader.jsx')
-rw-r--r--src/lib/cart/components/Cartheader.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cart/components/Cartheader.jsx b/src/lib/cart/components/Cartheader.jsx
index 6967d180..ddb77c1f 100644
--- a/src/lib/cart/components/Cartheader.jsx
+++ b/src/lib/cart/components/Cartheader.jsx
@@ -48,7 +48,7 @@ const Cardheader = (cartCount) => {
setIsloading(true)
let cart = await getCartApi()
setProductCart(cart)
- setCountCart(cart.productTotal)
+ setCountCart(cart?.productTotal)
setIsloading(false)
}, [setProductCart, setIsloading])