mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-05 11:00:56 +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');
|
const isAuthenticated = cookies.get('id');
|
||||||
|
|
||||||
if (isAuthenticated) {
|
if (isAuthenticated) {
|
||||||
const whoami = await apiWhoami(fetch).catch((e) => {
|
const whoami = await apiWhoami(fetch).catch(() => {
|
||||||
throw redirect(302, '/admin/auth/logout');
|
throw redirect(302, '/admin/auth/logout');
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue