From 3542d65853072df17355f47a6abc3622375807ab Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 1 Aug 2024 17:10:17 +0700
Subject: <iman> update setRefresh cart

---
 src-migrate/modules/product-detail/components/AddToCart.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src-migrate/modules/product-detail/components/AddToCart.tsx')

diff --git a/src-migrate/modules/product-detail/components/AddToCart.tsx b/src-migrate/modules/product-detail/components/AddToCart.tsx
index 644d5b90..0ac8229e 100644
--- a/src-migrate/modules/product-detail/components/AddToCart.tsx
+++ b/src-migrate/modules/product-detail/components/AddToCart.tsx
@@ -55,8 +55,8 @@ const AddToCart = ({
       isNaN(quantity) ||
       typeof auth !== 'object'
     ) return;
-    setAddCartAlert(true);
     setRefreshCart(true);
+    setAddCartAlert(true);
     toast.promise(
       upsertUserCart({
         userId: auth.id,
-- 
cgit v1.2.3

