remove old serverCaps

pull/21833/head
David Baker 2019-08-16 15:27:11 +01:00
parent 41a9db3224
commit 3c4c595f79
2 changed files with 1 additions and 2 deletions

View File

@ -536,7 +536,7 @@ module.exports = React.createClass({
/>; />;
} else if (!this.state.matrixClient && !this.state.busy) { } else if (!this.state.matrixClient && !this.state.busy) {
return null; return null;
} else if (this.state.busy || !this.state.flows | this.state.serverCaps === null) { } else if (this.state.busy || !this.state.flows) {
return <div className="mx_AuthBody_spinner"> return <div className="mx_AuthBody_spinner">
<Spinner /> <Spinner />
</div>; </div>;

View File

@ -72,7 +72,6 @@ describe('Registration', function() {
// Set non-empty flows, capabilities & matrixClient to get past the loading spinner // Set non-empty flows, capabilities & matrixClient to get past the loading spinner
root.setState({ root.setState({
flows: [], flows: [],
serverCaps: {},
matrixClient: {}, matrixClient: {},
busy: false, busy: false,
}); });