From 646c9f1a83645db0e596e0472183c681e503930d Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Sat, 29 Aug 2020 13:19:05 +0100 Subject: [PATCH] Fix this contexts --- src/components/structures/auth/Login.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/structures/auth/Login.js b/src/components/structures/auth/Login.js index 9a639ed58a..53769fb5a6 100644 --- a/src/components/structures/auth/Login.js +++ b/src/components/structures/auth/Login.js @@ -569,7 +569,7 @@ export default class LoginComponent extends React.Component { return null; } - _renderPasswordStep() { + _renderPasswordStep = () => { const PasswordLogin = sdk.getComponent('auth.PasswordLogin'); let onEditServerDetailsClick = null; @@ -598,9 +598,9 @@ export default class LoginComponent extends React.Component { busy={this.props.isSyncing || this.state.busyLoggingIn} /> ); - } + }; - _renderSsoStep(loginType) { + _renderSsoStep = loginType => { const SignInToText = sdk.getComponent('views.auth.SignInToText'); let onEditServerDetailsClick = null; @@ -629,7 +629,7 @@ export default class LoginComponent extends React.Component { /> ); - } + }; render() { const Loader = sdk.getComponent("elements.Spinner");