refactor(FE): Show age as days and weeks in table

This commit is contained in:
rstubryan
2026-01-22 11:34:29 +07:00
parent 9cffa53122
commit 1e421e4230
@@ -119,7 +119,9 @@ const SalesReportTable = ({
cell: (props) => { cell: (props) => {
const age = props.row.original.age; const age = props.row.original.age;
const week = props.row.original.week; const week = props.row.original.week;
return age && week ? `${formatNumber(age)} (Minggu ke-${week})` : '-'; return age && week
? `${formatNumber(age)} hari (${week} minggu)`
: '-';
}, },
}, },
{ {