Lock interactive auth as busy until state change

This keeps interactive auth locked as busy until a state change so that e.g.
accepting a terms step will remain "busy looking" until the next step of the
process appears.

Fixes https://github.com/vector-im/riot-web/issues/12546
pull/21833/head
J. Ryan Stinnett 2020-03-03 14:40:21 +00:00
parent 88f351d5ca
commit 59c4e36ba8
1 changed files with 1 additions and 4 deletions

View File

@ -161,6 +161,7 @@ export default createReactClass({
_authStateUpdated: function(stageType, stageState) {
const oldStage = this.state.authStage;
this.setState({
busy: false,
authStage: stageType,
stageState: stageState,
errorText: stageState.error,
@ -184,10 +185,6 @@ export default createReactClass({
errorText: null,
stageErrorText: null,
});
} else {
this.setState({
busy: false,
});
}
},