summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-09-22 10:35:48 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-09-22 10:35:48 +0700
commitf2fc34da455d755b8d5b3252299e2fae04e37c21 (patch)
treee9bd9b09218e83fb639ea2325a4f76929ce9476a /src/lib
parentbda91439b6ef4605a579bde8bef603b551aab3dd (diff)
fixing error cart
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cart/components/Cartheader.jsx8
1 files changed, 4 insertions, 4 deletions
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'>