From 9b7a5ffdd1b2ff8f3b36017f6cbf852142d23427 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Pl=C3=BCcken?= Date: Thu, 23 Feb 2023 13:47:34 +0100 Subject: [PATCH] fix(reservations): fixes errors not being displayed when reservation system returns error. removed translations applied twice. (#11144) --- react/features/authentication/actions.any.ts | 2 +- .../authentication/components/web/LoginDialog.tsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/react/features/authentication/actions.any.ts b/react/features/authentication/actions.any.ts index 708c2c7aa..c0867b7f7 100644 --- a/react/features/authentication/actions.any.ts +++ b/react/features/authentication/actions.any.ts @@ -98,7 +98,7 @@ function _upgradeRoleFinished( name: authenticationError || connectionError, ...other }; - progress = authenticationError ? 0.5 : 0; + progress = 0; } return { diff --git a/react/features/authentication/components/web/LoginDialog.tsx b/react/features/authentication/components/web/LoginDialog.tsx index 47623fc12..35a0f7f15 100644 --- a/react/features/authentication/components/web/LoginDialog.tsx +++ b/react/features/authentication/components/web/LoginDialog.tsx @@ -207,7 +207,7 @@ class LoginDialog extends Component { let messageKey; if (progress && progress < 1) { - messageKey = t('connection.FETCH_SESSION_ID'); + messageKey = 'connection.FETCH_SESSION_ID'; } else if (error) { const { name } = error; @@ -218,14 +218,14 @@ class LoginDialog extends Component { && credentials.jid === toJid(username, configHosts ?? { authdomain: '', domain: '' }) && credentials.password === password) { - messageKey = t('dialog.incorrectPassword'); + messageKey = 'dialog.incorrectPassword'; } } else if (name) { - messageKey = t('dialog.connectErrorWithMsg'); + messageKey = 'dialog.connectErrorWithMsg'; messageOptions.msg = `${name} ${error.message}`; } } else if (connecting) { - messageKey = t('connection.CONNECTING'); + messageKey = 'connection.CONNECTING'; } if (messageKey) {