diff --git a/.vscode/settings.json b/.vscode/settings.json index e967d45..188ebab 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -35,7 +35,8 @@ "pwa", "api", "ux", - "route" + "route", + "frontend" ], "[ignore]": { "editor.defaultFormatter": "foxundermoon.shell-format" diff --git a/islands/LoginForm.tsx b/islands/LoginForm.tsx index f1ec6a2..325fc7b 100644 --- a/islands/LoginForm.tsx +++ b/islands/LoginForm.tsx @@ -35,7 +35,7 @@ export default function LoginForm() { type LoginFormFields = { email: string - passkey: boolean + passkey: 'on' | undefined } async function connect(event: Event) { @@ -46,7 +46,7 @@ async function connect(event: Event) { try { // User disable passkey - if (!fields.passkey) { + if (fields.passkey !== 'on') { throw new Error('User refused passkey') }