From 6209d62f49c0261fc183ebd7945a6e8df8291960 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 18 Sep 2019 13:16:21 +0100 Subject: [PATCH] Don't show spinner if registration is disabled Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/auth/Registration.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index 7af1eaae34..6321028457 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -238,11 +238,15 @@ module.exports = createReactClass({ } else if (e.httpStatus === 403 && e.errcode === "M_UNKNOWN") { this.setState({ errorText: _t("Registration has been disabled on this homeserver."), + // add empty flows array to get rid of spinner + flows: [], }); } else { console.log("Unable to query for supported registration methods.", e); this.setState({ errorText: _t("Unable to query for supported registration methods."), + // add empty flows array to get rid of spinner + flows: [], }); } } @@ -542,7 +546,7 @@ module.exports = createReactClass({ return