fix: remove unused e

This commit is contained in:
EETagent 2023-01-12 13:31:31 +01:00
parent d295e202ed
commit 8e9cab5139

View file

@ -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 {