From 0c74635521471e3d67c434a7df9cd9c61bbcaa72 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Fri, 6 Oct 2023 14:09:55 +0700
Subject: fixing discount presentage

---
 src/lib/product/components/Product/ProductDesktop.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/product/components/Product/ProductDesktop.jsx')

diff --git a/src/lib/product/components/Product/ProductDesktop.jsx b/src/lib/product/components/Product/ProductDesktop.jsx
index 4c8c3ae9..55878a93 100644
--- a/src/lib/product/components/Product/ProductDesktop.jsx
+++ b/src/lib/product/components/Product/ProductDesktop.jsx
@@ -216,7 +216,7 @@ const ProductDesktop = ({ products, wishlist, toggleWishlist }) => {
                       <div className='flex gap-x-2 items-center p-2'>
                         <div className='bg-yellow-400 rounded-full p-1 h-9 w-20 flex items-center justify-center '>
                           <span className='text-lg font-bold'>
-                            {product.lowestPrice.discountPercentage}%
+                            {Math.floor(product.lowestPrice.discountPercentage)}%
                           </span>
                         </div>
                         <div
-- 
cgit v1.2.3

