diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-09-02 10:54:00 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-09-02 10:54:00 +0700 |
| commit | 702b5d9b6e215ad812fadaff3325e1e6164d3b24 (patch) | |
| tree | dfcd471df00e29ac06a839998c50df1c221fb052 /src/lib | |
| parent | a2221f7b66f259cddc83ae95c159b30d7e5612ce (diff) | |
<iman> update pop up tambah keranjang
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/cart/components/Cartheader.jsx | 2 |
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]) |
