refactor(FE): Handle null transaction_type and fix useEffect dependency

This commit is contained in:
rstubryan
2026-03-06 09:53:57 +07:00
parent 9ff6f3a35d
commit ca0b216ba0
2 changed files with 4 additions and 2 deletions
@@ -29,7 +29,9 @@ const FinanceDetail = ({ finance }: { finance: Finance }) => {
},
{
label: 'Jenis Transaksi',
value: formatTitleCase(finance.transaction_type.split('_').join(' ')),
value: formatTitleCase(
(finance.transaction_type || '').split('_').join(' ')
),
},
{
label: 'Pihak',
@@ -594,7 +594,7 @@ const FinanceTable = () => {
},
},
],
[]
[deleteModal]
);
useEffect(() => {