summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-10-06 15:19:54 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-10-06 15:19:54 +0700
commit2ac1c3a84032ba819046e1634ca7c46ac0521e3b (patch)
treef3a8e07e51b8035902f9701ccda07b5593bb998d /src/core
parent0c74635521471e3d67c434a7df9cd9c61bbcaa72 (diff)
add condisi if harga tier user lebih rendah dari flash sale
Diffstat (limited to 'src/core')
-rw-r--r--src/core/components/elements/Product/cartProductsList.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/components/elements/Product/cartProductsList.jsx b/src/core/components/elements/Product/cartProductsList.jsx
index 5887b425..32df992b 100644
--- a/src/core/components/elements/Product/cartProductsList.jsx
+++ b/src/core/components/elements/Product/cartProductsList.jsx
@@ -160,7 +160,7 @@ const CardProdcuctsList = ({
</td>
<td className='relative'>
<ComponentCanBuy canBuy={product.canBuy} />
- {product?.hasFlashsale ? (
+ {product?.hasFlashsale && product?.price?.discountPercentage > 0 ? (
<>
<div className='flex gap-x-1 items-center justify-center mt-3'>
<div className='text-gray_r-11 line-through text-caption-1'>