diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-18 13:54:37 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-18 13:54:37 +0700 |
| commit | 7faf56fa355fcb62df9ff2b4109dbbed8c8e4755 (patch) | |
| tree | 7d19517083d98e5277797a309587287892bf9469 /src/lib | |
| parent | 9d99b291bb347f045b03b2de6ee51a8fbc248721 (diff) | |
<iman> perbaiki code
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/transaction/components/Transaction.jsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/lib/transaction/components/Transaction.jsx b/src/lib/transaction/components/Transaction.jsx index a6a9cf6b..58c824f2 100644 --- a/src/lib/transaction/components/Transaction.jsx +++ b/src/lib/transaction/components/Transaction.jsx @@ -778,12 +778,14 @@ const Transaction = ({ id }) => { ? `| ${product?.attributes.join(', ')}` : ''} </div> - <div className='text-[10px] text-red-500 italic mt-2'> - {product.soQty !== product.reservedStockQty - ? 'Barang sedang disiapkan' - : `${product.reservedStockQty} barang bisa di + {product.soQty && product.reservedStockQty && ( + <div className='text-[10px] text-red-500 italic mt-2'> + {product.soQty !== product.reservedStockQty + ? 'Barang sedang disiapkan' + : `${product.reservedStockQty} barang bisa di kirim/pickup`} - </div> + </div> + )} </div> </td> {/* <td> |
