From b42d632b92bac97c119486873a5ae1f82d655ab3 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Sat, 18 Oct 2025 10:17:49 +0700 Subject: fix voucher desktop --- src/lib/product/components/ProductCard.jsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/lib/product/components/ProductCard.jsx b/src/lib/product/components/ProductCard.jsx index ac1ab29b..5912f837 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -685,10 +685,16 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { )} - {discount > 0 && product?.flashSale?.id < 1 && ( -
-
- Voucher : {currencyFormat(discount)} + {discount > 0 && (product?.flashSale?.id ?? 0) < 1 && ( +
+
+ Voucher + + + + {currencyFormat(discount)} + +
)} -- cgit v1.2.3