mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-17 21:41:20 +00:00
fix: remove unused e
This commit is contained in:
parent
d295e202ed
commit
8e9cab5139
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue