diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-29 10:55:52 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-29 10:55:52 +0700 |
| commit | ac83b0ea5afd82194f38fbc913678e16a81b5c2c (patch) | |
| tree | 4373da17bcb43d752b7bd888e28ba906099a19aa /src/lib/product | |
| parent | c7b437cd0541cde9e2a829ec3c5689dc237505a8 (diff) | |
| parent | b4861f70338adb3960125923a7e6e4032279c88e (diff) | |
Merge branch 'new-release' into Feature/pengajuan-tempo
# Conflicts:
# src/lib/auth/components/Menu.jsx
# src/pages/my/menu.jsx
Diffstat (limited to 'src/lib/product')
| -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, |
