summaryrefslogtreecommitdiff
path: root/src/lib/product
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-06-06 10:07:51 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-06-06 10:07:51 +0700
commite7ff25b6c0763149981df738ff50871b851bf4a6 (patch)
treebfc390b0429a2c635239d6d1f489ada41ac9c62b /src/lib/product
parentd941c429ce185d6bb67c603d2bdb3017cdd79ae8 (diff)
<iman> add feature SNI-TKDN
Diffstat (limited to 'src/lib/product')
-rw-r--r--src/lib/product/components/ProductCard.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 357f3fd9..98732407 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -50,7 +50,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
/>
<div className="absolute top-0 right-0 flex mt-3">
<div className="gambarB ">
- {product.isSni && (
+ {product?.isSni && (
<ImageNext
src="/images/sni-logo.png"
alt="SNI Logo"
@@ -61,7 +61,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
)}
</div>
<div className="gambarC ">
- {product.isTkdn && (
+ {product?.isTkdn && (
<ImageNext
src="/images/TKDN.png"
alt="TKDN"
@@ -208,7 +208,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
/>
<div className="absolute top-0 right-0 flex mt-3">
<div className="gambarB ">
- {product.isSni && (
+ {product?.isSni && (
<ImageNext
src="/images/sni-logo.png"
alt="SNI Logo"
@@ -219,7 +219,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
)}
</div>
<div className="gambarC ">
- {product.isTkdn && (
+ {product?.isTkdn && (
<ImageNext
src="/images/TKDN.png"
alt="TKDN"