Clear out discovery errors on each try

This commit is contained in:
J. Ryan Stinnett 2019-01-29 23:50:31 -06:00
parent 36d162cb25
commit f5e3b90fc3

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 {