From 315cdc0cf10af14ef17e93b8d0af6f57449ecc38 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Sat, 18 Mar 2023 18:06:58 -0600 Subject: [PATCH] remove unused lastView and localStorage account names --- src/store/account.ts | 22 ---------------------- src/store/app.ts | 4 ---- 2 files changed, 26 deletions(-) delete mode 100644 src/store/account.ts 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" ? ""