From 8e9cab513995017e9ef4062deb0bf02f5a808395 Mon Sep 17 00:00:00 2001 From: EETagent Date: Thu, 12 Jan 2023 13:31:31 +0100 Subject: [PATCH] fix: remove unused e --- .../src/routes/(admin)/admin/(authenticated)/+layout.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/(admin)/admin/(authenticated)/+layout.server.ts b/frontend/src/routes/(admin)/admin/(authenticated)/+layout.server.ts index 55d325c..ba6c51b 100644 --- a/frontend/src/routes/(admin)/admin/(authenticated)/+layout.server.ts +++ b/frontend/src/routes/(admin)/admin/(authenticated)/+layout.server.ts @@ -7,7 +7,7 @@ export const load: LayoutServerLoad = async ({ cookies, fetch }) => { const isAuthenticated = cookies.get('id'); if (isAuthenticated) { - const whoami = await apiWhoami(fetch).catch((e) => { + const whoami = await apiWhoami(fetch).catch(() => { throw redirect(302, '/admin/auth/logout'); }); return {