Fix budget data being one month off #31
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user