diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-08 15:50:52 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-08 15:50:52 +0700 |
| commit | f39ed21b9a3f1a43898c65b8515bb420c7075eb3 (patch) | |
| tree | eeb5ba674b83896e682110a8c5b323eb672be884 /src-migrate/modules | |
| parent | ecea7370ec6ba206ef4b884b473616e1a4689ea1 (diff) | |
<iman> add ? to avoid error log
Diffstat (limited to 'src-migrate/modules')
| -rw-r--r-- | src-migrate/modules/product-promo/components/AddToCart.tsx | 2 |
1 files changed, 1 insertions, 1 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' |
