From f2fc34da455d755b8d5b3252299e2fae04e37c21 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Fri, 22 Sep 2023 10:35:48 +0700
Subject: fixing error cart

---
 src/lib/cart/components/Cartheader.jsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(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 dd6c276e..ab5dfdaa 100644
--- a/src/lib/cart/components/Cartheader.jsx
+++ b/src/lib/cart/components/Cartheader.jsx
@@ -158,14 +158,14 @@ const Cardheader = (cartCount) => {
                   </div>
                 </div>
               ))}
-            {products.length === 0 && !isLoading && (
+            {auth && products.length === 0 && !isLoading && (
               <div className='justify-center p-4'>
                 <p className='text-gray-500 text-center '>
                   Tidak Ada Produk di Keranjang Belanja Anda
                 </p>
               </div>
             )}
-            {products.length > 0 && !isLoading && (
+            {auth && products.length > 0 && !isLoading && (
               <>
                 <ul role='list' class='divide-y divide-gray-200 dark:divide-gray-700'>
                   {products &&
@@ -251,10 +251,10 @@ const Cardheader = (cartCount) => {
               </>
             )}
           </div>
-          {products.length > 0 && !isLoading && (
+          {auth && products.length > 0 && !isLoading && (
             <>
               <div className='mt-3'>
-                <span className='text-gray-400 text-caption-2'>Sub Total Sebelum PPN : </span>
+                <span className='text-gray-400 text-caption-2'>Subtotal Sebelum PPN : </span>
                 <span className='font-semibold text-red-600'>Rp. {currencyFormat(subTotal)}</span>
               </div>
               <div className='mt-5 mb-2'>
-- 
cgit v1.2.3

