diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js index 393c640604..aed8e9fca0 100644 --- a/src/components/structures/auth/Login.js +++ b/src/components/structures/auth/Login.js @@ -236,12 +236,13 @@ module.exports = React.createClass({ }, onUsernameBlur: async function(username) { + const doWellknownLookup = username[0] === "@"; this.setState({ username: username, - busy: true, // unset later by the result of onServerConfigChange + busy: doWellknownLookup, // unset later by the result of onServerConfigChange errorText: null, }); - if (username[0] === "@") { + if (doWellknownLookup) { const serverName = username.split(':').slice(1).join(':'); try { const result = await AutoDiscoveryUtils.validateServerName(serverName);