Clear out discovery errors on each try

pull/21833/head
J. Ryan Stinnett 2019-01-29 23:50:31 -06:00
parent 36d162cb25
commit f5e3b90fc3
1 changed files with 4 additions and 1 deletions

View File

@ -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 {