Fix budget data being one month off #31

Merged
jacob1123 merged 1 commits from hotfix-budgeting-off-by-one into master 2022-03-01 21:38:24 +01:00

View File

@ -116,7 +116,7 @@ export const useAccountStore = defineStore("budget/account", {
account.Transactions = transactions;
},
async FetchMonthBudget(budgetid: string, year: number, month: number) {
const result = await GET("/budget/" + budgetid + "/" + year + "/" + month);
const result = await GET("/budget/" + budgetid + "/" + year + "/" + (month+1));
const response = await result.json();
if (response.Categories == undefined || response.Categories.length <= 0)
return;