mirror of https://github.com/vector-im/riot-web
Merge pull request #2924 from jryans/password-on-server-name
Test `defaultServerName` before showing it on forgot passwordpull/21833/head
commit
65784afb91
|
@ -222,7 +222,7 @@ module.exports = React.createClass({
|
|||
}
|
||||
|
||||
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', {
|
||||
serverName: this.props.defaultServerName,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue