summaryrefslogtreecommitdiff
path: root/src/lib/product
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-08-19 09:36:24 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-08-19 09:36:24 +0700
commitd1c0e083ac8f64dfaa8505fc11e30728dbd5a58d (patch)
tree0f715c4420e83d3ece6bec1ffe42bf3e79699d12 /src/lib/product
parentf19bed80a5711d2904745b1dff283d7936337b06 (diff)
<iman> update voucher pasti hemat avoid failed
Diffstat (limited to 'src/lib/product')
-rw-r--r--src/lib/product/components/ProductCard.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx
index 35e2a665..b5bb147c 100644
--- a/src/lib/product/components/ProductCard.jsx
+++ b/src/lib/product/components/ProductCard.jsx
@@ -16,7 +16,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => {
const utmSource = useUtmSource();
const [discount, setDiscount] = useState(0);
- let voucherPastiHemat = 0;
+ let voucherPastiHemat = product?.voucherPastiHemat ? 0 : product.newVoucherPastiHemat;
if (product?.voucherPastiHemat ? product?.voucherPastiHemat.length : voucherPastiHemat > 0) {
const stringVoucher = product?.voucherPastiHemat[0];