diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-26 16:56:03 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-26 16:56:03 +0700 |
| commit | f7a13c357a6d44f9fa6e0c034292ab782249731e (patch) | |
| tree | f92402d26662bffa8063d645bad89ac9ca2a19eb /src/lib/product/components | |
| parent | 7faf56fa355fcb62df9ff2b4109dbbed8c8e4755 (diff) | |
<iman> update improv
Diffstat (limited to 'src/lib/product/components')
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 5 |
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, |
