diff --git a/src/store/account.ts b/src/store/account.ts deleted file mode 100644 index 79c8340..0000000 --- a/src/store/account.ts +++ /dev/null @@ -1,22 +0,0 @@ -// @ts-check -import { defineStore } from "pinia"; - -export const useAccountStore = defineStore({ - id: "account", - state: () => ({ - account: JSON.parse( - typeof localStorage["account"] == "undefined" - ? null - : localStorage["account"] - ), - }), - getters: { - firstName: (state) => state.account.firstName, - lastName: (state) => state.account.lastName, - }, - actions: { - reset() { - localStorage.removeItem("account"); - }, - }, -}); diff --git a/src/store/app.ts b/src/store/app.ts index f5e82cb..0ed6c46 100644 --- a/src/store/app.ts +++ b/src/store/app.ts @@ -4,10 +4,6 @@ import { defineStore } from "pinia"; export const useAppStore = defineStore({ id: "app", state: () => ({ - _lastView: - typeof localStorage["lastView"] == "undefined" - ? "/start" - : localStorage["lastView"], _projectId: typeof localStorage.getItem("projectId") === "undefined" ? ""