From f5e3b90fc38ac5b9476959eecad3fa5dde915272 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Tue, 29 Jan 2019 23:50:31 -0600 Subject: [PATCH] Clear out discovery errors on each try --- src/components/structures/auth/Login.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js index fc33d9b54f..95e81b4e6f 100644 --- a/src/components/structures/auth/Login.js +++ b/src/components/structures/auth/Login.js @@ -265,7 +265,10 @@ module.exports = React.createClass({ }, onUsernameBlur: function(username) { - this.setState({ username: username }); + this.setState({ + username: username, + discoveryError: null, + }); if (username[0] === "@") { const serverName = username.split(':').slice(1).join(':'); try {