From 35793c84f780e0de60a5e833343949e980d3a63f Mon Sep 17 00:00:00 2001 From: it-fixcomart Date: Sat, 23 Nov 2024 13:35:14 +0700 Subject: update --- src/lib/tempo/components/Tempo.jsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/tempo/components/Tempo.jsx b/src/lib/tempo/components/Tempo.jsx index d8af450d..80d593e6 100644 --- a/src/lib/tempo/components/Tempo.jsx +++ b/src/lib/tempo/components/Tempo.jsx @@ -113,8 +113,7 @@ const Tempo = () => { w={32} className='badge-solid-green px-1 text-sm flex items-center justify-center font-thin' > - {' '} - {tempo.paymentTerm} + {tempo.paymentTerm ? tempo.paymentTerm : 'Review'}

@@ -127,7 +126,7 @@ const Tempo = () => { // w={16} className='text-3xl font-semibold' > - {currencyFormat(amountDue)} + {amountDue ? currencyFormat(amountDue) : '-'}
@@ -138,7 +137,11 @@ const Tempo = () => { // w={16} className='text-3xl font-semibold' > - {currencyFormat(Math.round(parseInt(limitTempo - amountDue)))} + {limitTempo && amountDue + ? currencyFormat( + Math.round(parseInt(limitTempo - amountDue)) + ) + : '-'}
@@ -149,7 +152,7 @@ const Tempo = () => { // w={16} className='text-3xl font-semibold' > - {currencyFormat(limitTempo)} + {limitTempo ? currencyFormat(limitTempo) : '-'}
-- cgit v1.2.3