diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/cart/components/Cartheader.jsx | 8 |
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'> |
