summaryrefslogtreecommitdiff
path: root/src-migrate/modules
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-31 15:39:21 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-31 15:39:21 +0700
commit4339c49be8f30dbb47b6882e61e909837dc91e81 (patch)
treef423417c3bb121589de8b7fffdae5201cd03ac4b /src-migrate/modules
parent8a03b5a325692fd39c193f2a12b1a9aa4af1553e (diff)
<iman> update auto reload add cart
Diffstat (limited to 'src-migrate/modules')
-rw-r--r--src-migrate/modules/product-detail/components/AddToCart.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src-migrate/modules/product-detail/components/AddToCart.tsx b/src-migrate/modules/product-detail/components/AddToCart.tsx
index 097db98a..c4df555b 100644
--- a/src-migrate/modules/product-detail/components/AddToCart.tsx
+++ b/src-migrate/modules/product-detail/components/AddToCart.tsx
@@ -51,6 +51,9 @@ const AddToCart = ({
error: { title: 'Menambahkan ke keranjang', description: 'Gagal menambahkan ke keranjang belanja' },
}
)
+ setTimeout(() => {
+ window.location.reload();
+ }, 1500);
if (source === 'buy') {
router.push('/shop/checkout?source=buy')