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