From 5328d3f4edaed4118bc0ca936a707651ecad5851 Mon Sep 17 00:00:00 2001 From: Sam Therapy Date: Tue, 31 Jan 2023 23:00:53 +0100 Subject: [PATCH] fix build + fix lint Signed-off-by: Sam Therapy --- frontend/src/lib/LoginForm.svelte | 2 +- frontend/src/routes/logout/+page.svelte | 22 ++++++++++------------ 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/frontend/src/lib/LoginForm.svelte b/frontend/src/lib/LoginForm.svelte index 799bc46..6fb6f81 100644 --- a/frontend/src/lib/LoginForm.svelte +++ b/frontend/src/lib/LoginForm.svelte @@ -6,7 +6,7 @@ const form = useForm(); $: submit = async (event: Event) => { - // @ts-ignore + // @ts-expect-error FormData makes tsc sad const formData = new URLSearchParams(new FormData(event.target as HTMLFormElement)); promise = self diff --git a/frontend/src/routes/logout/+page.svelte b/frontend/src/routes/logout/+page.svelte index d9df620..6b39660 100644 --- a/frontend/src/routes/logout/+page.svelte +++ b/frontend/src/routes/logout/+page.svelte @@ -1,18 +1,16 @@ {#await promise}