diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-07-31 15:39:21 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-07-31 15:39:21 +0700 |
| commit | 4339c49be8f30dbb47b6882e61e909837dc91e81 (patch) | |
| tree | f423417c3bb121589de8b7fffdae5201cd03ac4b /src-migrate | |
| parent | 8a03b5a325692fd39c193f2a12b1a9aa4af1553e (diff) | |
<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') |
