fix(FE): fixing injection payload negative not send properly

This commit is contained in:
randy-ar
2026-01-24 14:52:54 +07:00
parent 447ef81871
commit 1d06c6f02a
@@ -94,7 +94,7 @@ const FormFinanceInjection = ({
return {
bank_id: Number(values.bank_id_option?.value) || 0,
adjustment_date: formatDate(values.adjustment_date, 'YYYY-MM-DD'),
nominal: Number(values.nominal.replace(/\D/g, '')) || 0,
nominal: isNaN(Number(values.nominal)) ? 0 : Number(values.nominal),
notes: values.note,
};
};