diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-02 17:15:39 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-02 17:15:39 +0700 |
| commit | 55c9f5e1fb868c85e704529ac914b3d75fc7744e (patch) | |
| tree | 75543baf82a73fb7e8dea6c8a1c353e02c57bbcd /src/lib/product/components/ProductCard.jsx | |
| parent | d57ca7be5e2de9c48f4229b20a49a94bf05e88d1 (diff) | |
| parent | 6a2c25e83a45eeb5d613a99a0caa6f0ec1aae15f (diff) | |
<iman> Merge branch 'development' into Feature/new-cart-popup
Diffstat (limited to 'src/lib/product/components/ProductCard.jsx')
| -rw-r--r-- | src/lib/product/components/ProductCard.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index e10241a7..94db144d 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -18,7 +18,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { let voucherPastiHemat = 0; - if (product?.voucherPastiHemat.length > 0) { + if (product?.voucherPastiHemat?.length > 0) { const stringVoucher = product?.voucherPastiHemat[0]; const validJsonString = stringVoucher.replace(/'/g, '"'); voucherPastiHemat = JSON.parse(validJsonString); |
