diff --git a/src/components/structures/auth/SoftLogout.js b/src/components/structures/auth/SoftLogout.js
index 9342c6086e..c58754e9f5 100644
--- a/src/components/structures/auth/SoftLogout.js
+++ b/src/components/structures/auth/SoftLogout.js
@@ -228,6 +228,13 @@ export default class SoftLogout extends React.Component {
return ;
}
+ let introText = null; // null is translated to something area specific in this function
+ if (this.state.keyBackupNeeded) {
+ introText = _t(
+ "Regain access to your account and recover encryption keys stored on this device. " +
+ "Without them, you won’t be able to read all of your secure messages on any device.");
+ }
+
if (this.state.loginView === LOGIN_VIEW.PASSWORD) {
const Field = sdk.getComponent("elements.Field");
const AccessibleButton = sdk.getComponent('elements.AccessibleButton');
@@ -237,12 +244,9 @@ export default class SoftLogout extends React.Component {
error = {this.state.errorText};
}
- let introText = _t("Enter your password to sign in and regain access to your account.");
- if (this.state.keyBackupNeeded) {
- introText = _t(
- "Regain access your account and recover encryption keys stored on this device. " +
- "Without them, you won’t be able to read all of your secure messages on any device.");
- }
+ if (!introText) {
+ introText = _t("Enter your password to sign in and regain access to your account.");
+ } // else we already have a message and should use it (key backup warning)
return (