From a6c5ac669b607a4bba3ebb1d2b91ba8039b31b8e Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 11 Jun 2019 12:10:44 +0100 Subject: [PATCH] Don't show spinner once liveness check has failed We're not doing anything at that point so it's a lie --- src/components/structures/auth/Registration.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index 8188dbb3f7..dbcd01366c 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -177,7 +177,10 @@ module.exports = React.createClass({ ); this.setState({serverIsAlive: true}); } catch (e) { - this.setState(AutoDiscoveryUtils.authComponentStateForError(e, "register")); + this.setState({ + busy: false, + ...AutoDiscoveryUtils.authComponentStateForError(e, "register"), + }); if (this.state.serverErrorIsFatal) { return; // Server is dead - do not continue. } @@ -455,6 +458,8 @@ module.exports = React.createClass({ emailSid={this.props.idSid} poll={true} />; + } else if (!this.state.matrixClient && !this.state.busy) { + return null; } else if (this.state.busy || !this.state.flows) { return