From abdb7203a0d54e1ede7341da59495cc905b9b709 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Fri, 26 Apr 2024 15:44:01 -0700 Subject: [PATCH] refactor(auth): remove localStorage.removeItem('organization') organization is never set so no need to remove it. --- src/routes/console/organization-[organization]/+layout.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/routes/console/organization-[organization]/+layout.ts b/src/routes/console/organization-[organization]/+layout.ts index 6c201ecf3..17171db8f 100644 --- a/src/routes/console/organization-[organization]/+layout.ts +++ b/src/routes/console/organization-[organization]/+layout.ts @@ -47,7 +47,6 @@ export const load: LayoutLoad = async ({ params, depends }) => { const prefs = await sdk.forConsole.account.getPrefs(); const newPrefs = { ...prefs, organization: null }; sdk.forConsole.account.updatePrefs(newPrefs); - localStorage.removeItem('organization'); error(e.code, e.message); } };