From 2bfffa76b57c993e491c199d97d7efabb486548c Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 30 Aug 2019 15:54:00 -0600 Subject: [PATCH] Appease the linter --- src/components/views/auth/RegistrationForm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/views/auth/RegistrationForm.js b/src/components/views/auth/RegistrationForm.js index 68e0a4b99a..a226d29e6a 100644 --- a/src/components/views/auth/RegistrationForm.js +++ b/src/components/views/auth/RegistrationForm.js @@ -447,7 +447,8 @@ module.exports = React.createClass({ _showPhoneNumber() { const threePidLogin = !SdkConfig.get().disable_3pid_login; 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 true;