diff options
| author | Adam Soltys <[email protected]> | 2024-09-16 06:11:45 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-17 09:19:27 -0700 |
| commit | e8b97a281c527387a09f60ed51c9056c74a5d707 (patch) | |
| tree | b9818bea3cb2ff4d6116df9476215fca90aa12b3 /src/routes/(app)/+layout.server.ts | |
| parent | 737aca90bced07964d91c631ddd6d6cd81613129 (diff) | |
| download | coinos-ui-e8b97a281c527387a09f60ed51c9056c74a5d707.tar.gz coinos-ui-e8b97a281c527387a09f60ed51c9056c74a5d707.zip | |
account setup
Diffstat (limited to 'src/routes/(app)/+layout.server.ts')
| -rw-r--r-- | src/routes/(app)/+layout.server.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/(app)/+layout.server.ts b/src/routes/(app)/+layout.server.ts index e4105fb8..0901cb5d 100644 --- a/src/routes/(app)/+layout.server.ts +++ b/src/routes/(app)/+layout.server.ts @@ -39,12 +39,12 @@ export async function load({ cookies, request, url, params }) { redirect(307, `/${user.username}`); } - if ( protectedRoutes.find((p) => pathname.match(p)) && (!user)) { + if (protectedRoutes.find((p) => pathname.match(p)) && !user) { redirect(307, "/login"); } if (user && !user.pubkey && !pathname.includes("generate")) { - console.log("user missing pubkey", user) + console.log("user missing pubkey", user); redirect(303, `/${user.username}/generate`); } |
