diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 23:23:32 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 23:23:32 -0800 |
| commit | 13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121 (patch) | |
| tree | 076cd631b671ff5ab74dee08c775c20c192ac659 /src/routes/(static)/login | |
| parent | 2e61e8abbc318c36969cb5add0c63df81135b4ab (diff) | |
| download | coinos-ui-13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121.tar.gz coinos-ui-13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121.zip | |
fix svelte errors
Diffstat (limited to 'src/routes/(static)/login')
| -rw-r--r-- | src/routes/(static)/login/+page.server.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/routes/(static)/login/+page.server.ts b/src/routes/(static)/login/+page.server.ts index e4fb3815..eb0ad0bf 100644 --- a/src/routes/(static)/login/+page.server.ts +++ b/src/routes/(static)/login/+page.server.ts @@ -28,8 +28,8 @@ export const actions = { await login( user, cookies, - request.headers.get("cf-connecting-ip"), - request.headers.get("host"), + request.headers.get("cf-connecting-ip") ?? "", + request.headers.get("host") ?? "", ); } catch (e) { const { message } = e as Error; @@ -53,8 +53,8 @@ export const actions = { headers: { "content-type": "application/json", accept: "application/json", - "cf-connecting-ip": request.headers.get("cf-connecting-ip"), - "x-forwarded-host": request.headers.get("host"), + "cf-connecting-ip": request.headers.get("cf-connecting-ip") ?? "", + "x-forwarded-host": request.headers.get("host") ?? "", }, }); |
