mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Clear out discovery errors on each try
This commit is contained in:
parent
36d162cb25
commit
f5e3b90fc3
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue