mirror of https://github.com/vector-im/riot-web
Appease the linter
parent
d47fb799a5
commit
2bfffa76b5
|
@ -447,7 +447,8 @@ module.exports = React.createClass({
|
||||||
_showPhoneNumber() {
|
_showPhoneNumber() {
|
||||||
const threePidLogin = !SdkConfig.get().disable_3pid_login;
|
const threePidLogin = !SdkConfig.get().disable_3pid_login;
|
||||||
const haveIs = Boolean(this.props.serverConfig.isUrl);
|
const haveIs = Boolean(this.props.serverConfig.isUrl);
|
||||||
if (!threePidLogin || (this.props.serverRequiresIdServer && !haveIs) || !this._authStepIsUsed('m.login.msisdn')) {
|
const haveRequiredIs = this.props.serverRequiresIdServer && !haveIs;
|
||||||
|
if (!threePidLogin || haveRequiredIs || !this._authStepIsUsed('m.login.msisdn')) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue