diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-08-15 08:01:04 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-08-15 08:01:04 +0000 |
| commit | 0c2f4f66314ea216d3ce5b8f6c698855e3cb9386 (patch) | |
| tree | b7df107707ec24d66c4324d307e2c8fff23bc66e /src/lib | |
| parent | 492e4a875ec7259be80bb4b501bc62e7afa0c9c7 (diff) | |
| parent | 2fa9b3df2a33917d681bfc16181f53841847464f (diff) | |
Merged in bug-select-cart (pull request #241)
Bug select cart
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/transaction/components/Transaction.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/transaction/components/Transaction.jsx b/src/lib/transaction/components/Transaction.jsx index 88f11fd4..a9e04c0e 100644 --- a/src/lib/transaction/components/Transaction.jsx +++ b/src/lib/transaction/components/Transaction.jsx @@ -872,8 +872,8 @@ const Transaction = ({ id }) => { </div> )} - {transaction?.data?.products?.map((product) => ( - <div className='flex justify-end mt-4' key={product.id}> + {transaction?.data?.products?.length > 0 && ( + <div className='flex justify-end mt-4'> <div className='w-1/4 grid grid-cols-2 gap-y-3 text-gray_r-12/80'> <div className='text-right'>Subtotal</div> <div className='text-right font-medium'> @@ -898,7 +898,7 @@ const Transaction = ({ id }) => { </div> </div> </div> - ))} + )} {transaction?.data?.productsRejectLine.length > 0 && ( <div className='text-h-sm font-semibold mt-10 mb-4'> |
