diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-07-31 08:40:00 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-07-31 08:40:00 +0000 |
| commit | b0f4055042aa0efbbef1ebafbbb032dc4b67da58 (patch) | |
| tree | 5c1b8677a154725707de4a9cb76a822c96499e3a /src-migrate | |
| parent | b0ceff1f304d42986192b68b8309760b49632ea8 (diff) | |
| parent | 4339c49be8f30dbb47b6882e61e909837dc91e81 (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.tsx | 3 |
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') |
