From f7a13c357a6d44f9fa6e0c034292ab782249731e Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Tue, 26 Nov 2024 16:56:03 +0700
Subject: <iman> update improv

---
 src/lib/product/components/ProductCard.jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/lib/product/components/ProductCard.jsx')

diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 3e6a6913..16e20703 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -18,7 +18,10 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
   const [discount, setDiscount] = useState(0);
   const { isDesktop, isMobile } = useDevice();
   let voucherPastiHemat = 0;
-  voucherPastiHemat = product?.newVoucherPastiHemat[0];
+  voucherPastiHemat = product?.newVoucherPastiHemat[0]
+    ? product?.newVoucherPastiHemat[0]
+    : product?.newVoucherPastiHemat;
+  console.log('voucherPastiHemat', voucherPastiHemat);
 
   const callForPriceWhatsapp = whatsappUrl('product', {
     name: product.name,
-- 
cgit v1.2.3

