From e9e2917042d3a99c3fb77176b3e5f1034b3a983d Mon Sep 17 00:00:00 2001 From: Ruben Talstra Date: Wed, 12 Feb 2025 22:21:33 +0100 Subject: [PATCH] fix: fixed missing keys for the button --- client/src/components/Auth/PasskeyAuth.tsx | 4 ++-- client/src/locales/en/translation.json | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/components/Auth/PasskeyAuth.tsx b/client/src/components/Auth/PasskeyAuth.tsx index 4d1af8f03d..a628d579ee 100644 --- a/client/src/components/Auth/PasskeyAuth.tsx +++ b/client/src/components/Auth/PasskeyAuth.tsx @@ -123,7 +123,7 @@ const PasskeyAuth: React.FC = ({ mode, onBack }) => { }); const result = await loginCallbackResponse.json(); if (result.user) { - alert(localize('com_auth_passkey_login_success')); + // alert(localize('com_auth_passkey_login_success')); window.location.href = '/'; } else { throw new Error( @@ -180,7 +180,7 @@ const PasskeyAuth: React.FC = ({ mode, onBack }) => { }); const result = await registerCallbackResponse.json(); if (result.user) { - alert(localize('com_auth_passkey_register_success')); + // alert(localize('com_auth_passkey_register_success')); window.location.href = '/login'; } else { throw new Error( diff --git a/client/src/locales/en/translation.json b/client/src/locales/en/translation.json index 6d562cc9c2..50dc2a183d 100644 --- a/client/src/locales/en/translation.json +++ b/client/src/locales/en/translation.json @@ -792,6 +792,8 @@ "com_auth_passkey_register_success": "Successfully registered with passkey", "com_auth_passkey_login_success": "Successfully logged in with passkey", "com_auth_passkey_try_again": "Please try again", + "com_auth_passkey_login": "Login with Passkey", + "com_auth_passkey_register": "Register with Passkey", "com_nav_settings_passkey_label_id": "ID:", "com_nav_settings_passkey_label_public_key": "Public Key:", "com_nav_settings_passkey_label_usage_counter": "Usage Counter:",