Fix budgeting not being openable
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
2022-02-28 20:14:27 +00:00
parent 8f666a0f26
commit 71b2f8a9a3

View File

@ -98,9 +98,12 @@ export const useAccountStore = defineStore("budget/account", {
actions: {
async SetCurrentAccount(budgetid: string, accountid: string) {
if (budgetid == null)
return
return;
this.CurrentAccountID = accountid;
if (accountid == null)
return;
const account = this.GetAccount(accountid)!;
useSessionStore().setTitle(account.Name);
await this.FetchAccount(account);