diff options
| author | trisusilo <tri.susilo@altama.co.id> | 2023-10-06 08:16:59 +0000 |
|---|---|---|
| committer | trisusilo <tri.susilo@altama.co.id> | 2023-10-06 08:16:59 +0000 |
| commit | 5bc76488a76f2a1a39a501eba1685e0875f61030 (patch) | |
| tree | c5aee34ead56a09f7d9194da95ccd27b3a53a52d /src/lib/product/components/Product/ProductMobile.jsx | |
| parent | b0333b521a3bc6e526b7c7b06d13680d8b1e9e01 (diff) | |
| parent | 2ac1c3a84032ba819046e1634ca7c46ac0521e3b (diff) | |
Merged in CR/Pricelist (pull request #94)
add condisi if harga tier user lebih rendah dari flash sale
Diffstat (limited to 'src/lib/product/components/Product/ProductMobile.jsx')
| -rw-r--r-- | src/lib/product/components/Product/ProductMobile.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/product/components/Product/ProductMobile.jsx b/src/lib/product/components/Product/ProductMobile.jsx index 63b391d5..ffa75f72 100644 --- a/src/lib/product/components/Product/ProductMobile.jsx +++ b/src/lib/product/components/Product/ProductMobile.jsx @@ -161,7 +161,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { return ( <MobileView> <div className='relative'> - {product?.flashSale?.remainingTime > 0 && ( + {product?.flashSale?.remainingTime > 0 && activeVariant?.price.discountPercentage > 0 && ( <div className={`absolute bottom-0 w-full`}> <div className='absolute bottom-0 w-full'> <ImageNext @@ -232,7 +232,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { <div className='text-gray_r-12/80 text-caption-2 mt-2 mb-1'>Harga mulai dari: </div> )} - {activeVariant.isFlashsale ? ( + {activeVariant.isFlashsale && activeVariant?.price?.discountPercentage > 0 ? ( <> <div className='flex gap-x-1 items-center'> <div className='badge-solid-red'>{activeVariant?.price?.discountPercentage}%</div> |
