From 48cd6983f253319940cb27b2fbbb14eb597253a6 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Mon, 25 Sep 2023 09:21:33 +0700
Subject: add update cart di page variant product

---
 src/lib/cart/components/Cartheader.jsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'src/lib/cart/components/Cartheader.jsx')

diff --git a/src/lib/cart/components/Cartheader.jsx b/src/lib/cart/components/Cartheader.jsx
index 085b9408..d330ccb6 100644
--- a/src/lib/cart/components/Cartheader.jsx
+++ b/src/lib/cart/components/Cartheader.jsx
@@ -49,7 +49,7 @@ const Cardheader = (cartCount) => {
     setProductCart(cart)
     setCountCart(cart.productTotal)
     setIsloading(false)
-  }, [setProductCart])
+  }, [setProductCart, setIsloading])
 
   useEffect(() => {
     if (!products) return
@@ -74,7 +74,6 @@ const Cardheader = (cartCount) => {
   useEffect(() => {
     if (refreshCart) {
       refreshCartf()
-      console.log('ini masuk')
     }
     setRefreshCart(false)
   }, [refreshCart, refreshCartf, setRefreshCart])
-- 
cgit v1.2.3

