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/Cartheader.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/src/lib/cart/components/Cartheader.jsx b/src/lib/cart/components/Cartheader.jsx
index cbe7c7e1..901b1501 100644
--- a/src/lib/cart/components/Cartheader.jsx
+++ b/src/lib/cart/components/Cartheader.jsx
@@ -204,7 +204,7 @@ const Cardheader = (cartCount) => {
                                 </p>
                               </Link>
 
-                              {product?.price?.discountPercentage > 0 && (
+                              {product?.hasFlashsale  && (
                                 <div className='flex gap-x-1 items-center mb-2 mt-1'>
                                   <div className='badge-solid-red'>
                                     {product?.price?.discountPercentage}%
-- 
cgit v1.2.3

