summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrisusilo <tri.susilo@altama.co.id>2023-09-22 03:33:28 +0000
committertrisusilo <tri.susilo@altama.co.id>2023-09-22 03:33:28 +0000
commitc9c75d1c5ed36ce99ebb69f4c096188f258c59d7 (patch)
treee9bd9b09218e83fb639ea2325a4f76929ce9476a
parent8b12b43c0c3f9dd2d2743c83c23ed2a3f30fdae0 (diff)
parentf2fc34da455d755b8d5b3252299e2fae04e37c21 (diff)
Merged in Feature/popup_cart (pull request #74)
fixing error cart
-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'>