Re-enable register button on change to working HS

Register button disabling is done via serverErrorIsFatal so we need
to reset this on a successful validation.

https://github.com/vector-im/riot-web/issues/10029
This commit is contained in:
David Baker 2019-06-17 16:27:35 +01:00
parent 2eef3d610e
commit e3bf4a0b8e

View file

@ -180,7 +180,10 @@ module.exports = React.createClass({
serverConfig.hsUrl,
serverConfig.isUrl,
);
this.setState({serverIsAlive: true});
this.setState({
serverIsAlive: true,
serverErrorIsFatal: false,
});
} catch (e) {
this.setState({
busy: false,