diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-01 13:40:57 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-01 13:40:57 +0700 |
| commit | 42829a0907590139ecf4328a7a9ff9f6504a9113 (patch) | |
| tree | 28ef20df9280bdac9d736bc7f5272018dfec0ff8 /src-migrate/modules/product-detail/components/AddToCart.tsx | |
| parent | 285e91d4b63ca8dbd0a9f55e9c7db8b833749c0a (diff) | |
<iman> update pop up cart
Diffstat (limited to 'src-migrate/modules/product-detail/components/AddToCart.tsx')
| -rw-r--r-- | src-migrate/modules/product-detail/components/AddToCart.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src-migrate/modules/product-detail/components/AddToCart.tsx b/src-migrate/modules/product-detail/components/AddToCart.tsx index 42586032..644d5b90 100644 --- a/src-migrate/modules/product-detail/components/AddToCart.tsx +++ b/src-migrate/modules/product-detail/components/AddToCart.tsx @@ -56,7 +56,7 @@ const AddToCart = ({ typeof auth !== 'object' ) return; setAddCartAlert(true); - setRefreshCart(true) + setRefreshCart(true); toast.promise( upsertUserCart({ userId: auth.id, @@ -103,9 +103,6 @@ const AddToCart = ({ active={addCartAlert} close={() => { setAddCartAlert(false); - // setTimeout(() => { - // window.location.reload(); - // }, 1500); } } > |
