From 3c4c595f7989a644f03502677ea02db090addb2d Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 16 Aug 2019 15:27:11 +0100 Subject: [PATCH] remove old serverCaps --- src/components/structures/auth/Registration.js | 2 +- test/components/structures/auth/Registration-test.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index af51ca7df0..63c5b267cf 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -536,7 +536,7 @@ module.exports = React.createClass({ />; } else if (!this.state.matrixClient && !this.state.busy) { return null; - } else if (this.state.busy || !this.state.flows | this.state.serverCaps === null) { + } else if (this.state.busy || !this.state.flows) { return
; diff --git a/test/components/structures/auth/Registration-test.js b/test/components/structures/auth/Registration-test.js index 38c7ae3849..3d4c8f921a 100644 --- a/test/components/structures/auth/Registration-test.js +++ b/test/components/structures/auth/Registration-test.js @@ -72,7 +72,6 @@ describe('Registration', function() { // Set non-empty flows, capabilities & matrixClient to get past the loading spinner root.setState({ flows: [], - serverCaps: {}, matrixClient: {}, busy: false, });