fix suggested
This commit is contained in:
parent
8122d07069
commit
8efb7c934d
|
|
@ -1337,7 +1337,7 @@ function Row({ row, year, month, refresh, index, onEditBill }) {
|
|||
setShowUpdateNudge(false);
|
||||
startTransition(async () => {
|
||||
try {
|
||||
await api.updateBill(row.id, { expected_amount: amount });
|
||||
await api.updateBill(row.id, { name: row.name, due_day: row.due_day, expected_amount: amount });
|
||||
toast.success(`Default updated to ${fmt(amount)}`);
|
||||
refresh?.();
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue