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 {