aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/+layout.server.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-31 19:56:31 -0800
committerAdam Soltys <[email protected]>2023-01-31 19:56:31 -0800
commit7f2af99704879018837ccc1d971244dbf6dc12d6 (patch)
tree447e4a87e739ba4e53e8f31f6e1883cd54896dde /src/routes/(app)/+layout.server.js
parentc22e33eeb22529c07ac9e701dc87537b2a272f70 (diff)
downloadcoinos-ui-7f2af99704879018837ccc1d971244dbf6dc12d6.tar.gz
coinos-ui-7f2af99704879018837ccc1d971244dbf6dc12d6.zip
prettier
Diffstat (limited to 'src/routes/(app)/+layout.server.js')
-rw-r--r--src/routes/(app)/+layout.server.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/routes/(app)/+layout.server.js b/src/routes/(app)/+layout.server.js
index 4c09937c..11337c2a 100644
--- a/src/routes/(app)/+layout.server.js
+++ b/src/routes/(app)/+layout.server.js
@@ -15,9 +15,9 @@ export async function load({ cookies, request, url, params }) {
} catch (e) {}
}
- if (user?.needsMigration) {
- throw redirect(307, `/migrate`);
- }
+ if (user?.needsMigration) {
+ throw redirect(307, `/migrate`);
+ }
if (user && ['/', '/login', '/register'].includes(pathname) && request.method === 'GET') {
throw redirect(307, `/${user.username}/dashboard`);