1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

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 {