mirror of https://github.com/vector-im/riot-web
Clear out discovery errors on each try
parent
36d162cb25
commit
f5e3b90fc3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue