From 3de1a412bba31b19b8b443dd91df8aff8d6eda07 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 8 Aug 2024 16:22:00 +0700
Subject: <iman> update link button

---
 src-migrate/modules/product-promo/components/AddToCart.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src-migrate/modules/product-promo/components/AddToCart.tsx')

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'
-- 
cgit v1.2.3

