Skip to content

Commit

Permalink
fix: generating budget year now passes map directly into return state…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
Hoverth committed Nov 20, 2024
1 parent 9aa8ed0 commit a210936
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/store/state/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ export const generateBudgetYearFromCurrent = (year: number, current: BudgetYear)
return value;
}

current.income = current.income.map(clearValues);
current.expenses = current.expenses.map(clearValues);

return {
year,
income: current.income,
expenses: current.expenses
income: current.income.map(clearValues),
expenses: current.expenses.map(clearValues)
};
};

0 comments on commit a210936

Please sign in to comment.