diff --git a/web/src/store/index.ts b/web/src/store/index.ts index e361db1..c835abd 100644 --- a/web/src/store/index.ts +++ b/web/src/store/index.ts @@ -66,10 +66,10 @@ export const store = createStore({ state.CurrentAccountID = restoredState.CurrentAccountID; state.ShowMenu = restoredState.ShowMenu; - for (const budget of restoredState.Budgets) { + for (const budget of restoredState.Budgets || []) { state.Budgets.set(budget[0], budget[1]); } - for (const account of restoredState.Accounts) { + for (const account of restoredState.Accounts || []) { state.Accounts.set(account[0], account[1]); } },