diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-08 14:11:32 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-08 14:11:32 +0700 |
| commit | 079f8029445fdd243e267a4af7c7a4d5780afa24 (patch) | |
| tree | c167da48612454158d344d7c576cdcbbb3798749 /src/lib/quotation/components/Quotation.jsx | |
| parent | 6e36b0e78c7ac56c8b7d2f27a19838e9aaa9da98 (diff) | |
<iman> update pop up quotation & cart
Diffstat (limited to 'src/lib/quotation/components/Quotation.jsx')
| -rw-r--r-- | src/lib/quotation/components/Quotation.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/quotation/components/Quotation.jsx b/src/lib/quotation/components/Quotation.jsx index 3fac6f29..0ad042de 100644 --- a/src/lib/quotation/components/Quotation.jsx +++ b/src/lib/quotation/components/Quotation.jsx @@ -44,7 +44,7 @@ const Quotation = () => { getProductsCheckout() ); -const { setRefreshQuotation } = useProductCartContext(); +const { setRefreshCart } = useProductCartContext(); const SELF_PICKUP_ID = 32; const [products, setProducts] = useState(null); @@ -295,7 +295,7 @@ const { setRefreshQuotation } = useProductCartContext(); if (isSuccess?.id) { for (const product of products) deleteItemCart({ productId: product.id }); router.push(`/shop/quotation/finish?id=${isSuccess.id}`); - setRefreshQuotation(true); + setRefreshCart(true); return; } |
