mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +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) {
|
onUsernameBlur: function(username) {
|
||||||
this.setState({ username: username });
|
this.setState({
|
||||||
|
username: username,
|
||||||
|
discoveryError: null,
|
||||||
|
});
|
||||||
if (username[0] === "@") {
|
if (username[0] === "@") {
|
||||||
const serverName = username.split(':').slice(1).join(':');
|
const serverName = username.split(':').slice(1).join(':');
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue