summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-23 13:35:14 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-23 13:35:14 +0700
commit35793c84f780e0de60a5e833343949e980d3a63f (patch)
tree446de32d152bd6180870b9213d76d66fb9d55bb5 /src/lib
parent6bbf1dbd94355f34f58f4b72f134f3dbeac776aa (diff)
<iman> update
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/tempo/components/Tempo.jsx13
1 files changed, 8 insertions, 5 deletions
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'}
</Skeleton>
</p>
</div>
@@ -127,7 +126,7 @@ const Tempo = () => {
// w={16}
className='text-3xl font-semibold'
>
- {currencyFormat(amountDue)}
+ {amountDue ? currencyFormat(amountDue) : '-'}
</Skeleton>
</div>
<div className='border w-full p-4'>
@@ -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))
+ )
+ : '-'}
</Skeleton>
</div>
<div className='border w-full p-4'>
@@ -149,7 +152,7 @@ const Tempo = () => {
// w={16}
className='text-3xl font-semibold'
>
- {currencyFormat(limitTempo)}
+ {limitTempo ? currencyFormat(limitTempo) : '-'}
</Skeleton>
</div>
</div>