summaryrefslogtreecommitdiff
path: root/src/lib/quotation/components/Quotation.jsx
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-08-08 07:12:21 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-08-08 07:12:21 +0000
commit9468bb33e90badaad99d97df54c80da389c39093 (patch)
tree78e6f75daf1111fa2d5d1c5b665c0845958b1fae /src/lib/quotation/components/Quotation.jsx
parent1056bb941a642b3f173a036d5978cf79b94932b9 (diff)
parent079f8029445fdd243e267a4af7c7a4d5780afa24 (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.jsx4
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;
}