summaryrefslogtreecommitdiff
path: root/src-migrate
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-07-31 08:40:00 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-07-31 08:40:00 +0000
commitb0f4055042aa0efbbef1ebafbbb032dc4b67da58 (patch)
tree5c1b8677a154725707de4a9cb76a822c96499e3a /src-migrate
parentb0ceff1f304d42986192b68b8309760b49632ea8 (diff)
parent4339c49be8f30dbb47b6882e61e909837dc91e81 (diff)
Merged in Feature/iman-cart-popup (pull request #192)
<iman> update auto reload add cart
Diffstat (limited to 'src-migrate')
-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')