Fix budget data being one month off #31
@ -116,7 +116,7 @@ export const useAccountStore = defineStore("budget/account", {
|
|||||||
account.Transactions = transactions;
|
account.Transactions = transactions;
|
||||||
},
|
},
|
||||||
async FetchMonthBudget(budgetid: string, year: number, month: number) {
|
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();
|
const response = await result.json();
|
||||||
if (response.Categories == undefined || response.Categories.length <= 0)
|
if (response.Categories == undefined || response.Categories.length <= 0)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user