summaryrefslogtreecommitdiff
path: root/src/lib/cart/components/Cartheader.jsx
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-09-25 09:21:33 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-09-25 09:21:33 +0700
commit48cd6983f253319940cb27b2fbbb14eb597253a6 (patch)
tree593d6e7798a2617286f613a228a1ab883530dbe8 /src/lib/cart/components/Cartheader.jsx
parent562f5c23badaeb8640236de38193dccf38d6d1ed (diff)
add update cart di page variant product
Diffstat (limited to 'src/lib/cart/components/Cartheader.jsx')
-rw-r--r--src/lib/cart/components/Cartheader.jsx3
1 files changed, 1 insertions, 2 deletions
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])