summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 (