From 581334e8d077916c3a9ab87fd5b6e6b5126aba12 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Mon, 10 Jul 2023 10:00:33 +0700
Subject: add auth id

---
 src/lib/cart/components/Cart.jsx | 4 +++-
 1 file changed, 3 insertions(+), 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 224d02d1..41efffe9 100644
--- a/src/lib/cart/components/Cart.jsx
+++ b/src/lib/cart/components/Cart.jsx
@@ -111,7 +111,9 @@ const Cart = () => {
         selected: true
       }).then(() => {
         getCart().then(() => {
-          setPromotionType(false)
+          if(promotionActiveId){
+            setPromotionType(false)
+          }
         })
       })
     }
-- 
cgit v1.2.3

