From dde4c79768532247abae4a1d188c82f2d601fbe0 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Tue, 3 Oct 2023 17:11:13 +0700
Subject: check if flashsale in cart

---
 src/lib/cart/components/Cart.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/lib/cart/components/Cart.jsx')

diff --git a/src/lib/cart/components/Cart.jsx b/src/lib/cart/components/Cart.jsx
index b5976a1b..acd23af6 100644
--- a/src/lib/cart/components/Cart.jsx
+++ b/src/lib/cart/components/Cart.jsx
@@ -685,7 +685,7 @@ const Cart = () => {
                         </td>
                         <td className='relative'>
                           <ComponentCanBuy canBuy={product.canBuy} />
-                          {product?.price?.discountPercentage > 0 && (
+                          {product?.hasFlashsale && (
                             <div className='flex gap-x-1 items-center justify-center mt-3'>
                               <div className='text-gray_r-11 line-through text-caption-1'>
                                 {currencyFormat(product?.price?.price)}
-- 
cgit v1.2.3

