You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-02 21:22:41 +03:00
Test defaultServerName before showing it on forgot password
The Forgot Password screen wasn't checking the default server name for a value before showing it, leading to a possible "Your Matrix account on <blank>" message. Fixes https://github.com/vector-im/riot-web/issues/9507
This commit is contained in:
@@ -222,7 +222,7 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
let yourMatrixAccountText = _t('Your Matrix account');
|
let yourMatrixAccountText = _t('Your Matrix account');
|
||||||
if (this.state.enteredHsUrl === this.props.defaultHsUrl) {
|
if (this.state.enteredHsUrl === this.props.defaultHsUrl && this.props.defaultServerName) {
|
||||||
yourMatrixAccountText = _t('Your Matrix account on %(serverName)s', {
|
yourMatrixAccountText = _t('Your Matrix account on %(serverName)s', {
|
||||||
serverName: this.props.defaultServerName,
|
serverName: this.props.defaultServerName,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user