diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-08 07:12:21 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-08 07:12:21 +0000 |
| commit | 9468bb33e90badaad99d97df54c80da389c39093 (patch) | |
| tree | 78e6f75daf1111fa2d5d1c5b665c0845958b1fae /src/lib/quotation/components/Quotation.jsx | |
| parent | 1056bb941a642b3f173a036d5978cf79b94932b9 (diff) | |
| parent | 079f8029445fdd243e267a4af7c7a4d5780afa24 (diff) | |
Merged in Feature/new-cart-popup (pull request #223)
<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; } |
