diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 20:10:43 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 20:10:43 -0800 |
| commit | 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch) | |
| tree | d6bc2557c56b93177bb14aa376847c6e123a4862 /src/routes/(app)/apps/new/+page.server.ts | |
| parent | 13466248004327e9a026cb89f94926f9b060d1c1 (diff) | |
| download | coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip | |
format
Diffstat (limited to 'src/routes/(app)/apps/new/+page.server.ts')
| -rw-r--r-- | src/routes/(app)/apps/new/+page.server.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/routes/(app)/apps/new/+page.server.ts b/src/routes/(app)/apps/new/+page.server.ts index a78b9093..c221cef9 100644 --- a/src/routes/(app)/apps/new/+page.server.ts +++ b/src/routes/(app)/apps/new/+page.server.ts @@ -5,11 +5,7 @@ import { fail, redirect } from "@sveltejs/kit"; export const load = async ({ parent, url }) => { const { user } = await parent(); - if (!user) - redirect( - 307, - `/login?redirect=${encodeURIComponent(url.pathname + url.search)}`, - ); + if (!user) redirect(307, `/login?redirect=${encodeURIComponent(url.pathname + url.search)}`); let max_amount = url.searchParams.get("max_amount"); max_amount = max_amount ? Math.round(Number(max_amount) / 1000) : undefined; |
