summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-08-08 16:22:00 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-08-08 16:22:00 +0700
commit3de1a412bba31b19b8b443dd91df8aff8d6eda07 (patch)
treedd63bb7e97bb119e63ff94fe5485c072acf8a1c2
parent64489b794a80b381d86ea226f0fe36457d5836be (diff)
<iman> update link button
-rw-r--r--src-migrate/modules/product-promo/components/AddToCart.tsx2
-rw-r--r--src/lib/quotation/components/Quotationheader.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src-migrate/modules/product-promo/components/AddToCart.tsx b/src-migrate/modules/product-promo/components/AddToCart.tsx
index 8567dad8..3d0955e3 100644
--- a/src-migrate/modules/product-promo/components/AddToCart.tsx
+++ b/src-migrate/modules/product-promo/components/AddToCart.tsx
@@ -132,7 +132,7 @@ const ProductPromoAddToCart = ({product, promotion }: Props) => {
/>
</div>
<div className='ml-3 flex flex-1 items-start font-medium justify-center flex-col gap-y-1'>
- {!!product.manufacture.name ? (
+ {!!product?.manufacture?.name ? (
<Link
href={createSlug('/shop/brands/', product.manufacture.name, product.manufacture.id.toString())}
className=' hover:underline'
diff --git a/src/lib/quotation/components/Quotationheader.jsx b/src/lib/quotation/components/Quotationheader.jsx
index 0bb4dfe0..4529c977 100644
--- a/src/lib/quotation/components/Quotationheader.jsx
+++ b/src/lib/quotation/components/Quotationheader.jsx
@@ -96,7 +96,7 @@ const Quotationheader = (quotationCount) => {
const handleCheckout = async () => {
SetButtonTerapkan(true);
let checkoutAll = await odooApi('POST', `/api/v1/user/${auth.id}/cart/select-all`);
- router.push('/shop/quotation');
+ router.push('/my/quotations');
};
return (