summaryrefslogtreecommitdiff
path: root/src-migrate
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate')
-rw-r--r--src-migrate/modules/product-detail/components/AddToCart.tsx2
-rw-r--r--src-migrate/modules/product-promo/components/AddToCart.tsx2
2 files changed, 2 insertions, 2 deletions
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,
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',