From f39ed21b9a3f1a43898c65b8515bb420c7075eb3 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 8 Aug 2024 15:50:52 +0700
Subject: <iman> add ? to avoid error log

---
 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

