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-promo/components/AddToCart.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src-migrate/modules/product-promo/components/AddToCart.tsx b/src-migrate/modules/product-promo/components/AddToCart.tsx
index aae5cfc0..f066a4c8 100644
--- a/src-migrate/modules/product-promo/components/AddToCart.tsx
+++ b/src-migrate/modules/product-promo/components/AddToCart.tsx
@@ -58,8 +58,8 @@ const ProductPromoAddToCart = ({product, promotion }: Props) => {
       qtyAppend: true
     })
     setStatus('idle')
-    setAddCartAlert(true);
     setRefreshCart(true);
+    setAddCartAlert(true);
     toast({
       title: 'Tambah ke keranjang',
       description: 'Berhasil menambahkan barang ke keranjang belanja',
-- 
cgit v1.2.3

