refactor(FE): Display zero and negative aging days

This commit is contained in:
rstubryan
2026-01-19 09:32:59 +07:00
parent 70a15d3044
commit aaaa126c42
@@ -340,7 +340,9 @@ const CustomerPaymentTab = () => {
const value = props.row.original.aging_day;
return (
<div className='text-center'>
{value && value > 0 ? `${formatNumber(value)} hari` : '-'}
{value !== null && value !== undefined
? `${formatNumber(value)} hari`
: '-'}
</div>
);
},