diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-11-17 10:13:21 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2023-11-17 10:13:21 +0700 |
| commit | 6ebe202147269100cd63ef125e877e8f693a27a1 (patch) | |
| tree | 29a0ee0c5f78c734d286d2fecfe8e6196a2adabc /src/lib/product/components/ProductCard.jsx | |
| parent | 4ea9fbdcdf1c6625204bbaea9c4b117febf0a212 (diff) | |
hotfix/round down discount precentage
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 f7df29e2..fa555bcf 100644 --- a/src/lib/product/components/ProductCard.jsx +++ b/src/lib/product/components/ProductCard.jsx @@ -42,7 +42,7 @@ const ProductCard = ({ product, simpleTitle, variant = 'vertical' }) => { <div className='flex gap-x-1 items-center p-2 justify-center'> <div className='bg-yellow-400 rounded-lg p-1 h-6 w-19 flex items-center justify-center '> <span className='text-sm font-bold text-black'> - {product?.lowestPrice.discountPercentage}% + {Math.floor(product?.lowestPrice.discountPercentage)}% </span> </div> <div className='bg-red-600 border border-solid border-yellow-400 p-2 rounded-full h-6 flex w-fit items-center justify-center gap-x-2'> |
