summaryrefslogtreecommitdiff
path: root/src/lib/product
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-11-29 03:43:33 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-11-29 03:43:33 +0000
commitb4861f70338adb3960125923a7e6e4032279c88e (patch)
tree63d31733edd048ea50780d966ff0a1d5a4fa4866 /src/lib/product
parent37cd18a88f0f104e81c1b6f33f9bab7b2a0b2dfb (diff)
parentc996c4e0631aa3d51acc83f4cc23418e91f3158f (diff)
Merged in CR/website-improvement (pull request #390)
CR/website improvement
Diffstat (limited to 'src/lib/product')
-rw-r--r--src/lib/product/components/ProductCard.jsx5
1 files changed, 4 insertions, 1 deletions
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,