From 13f9ef7f26fff64c2bd54c8f9aa14e6ffac67121 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Feb 2026 23:23:32 -0800 Subject: fix svelte errors --- src/routes/(static)/login/+page.server.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/routes/(static)/login') 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") ?? "", }, }); -- cgit v1.2.3