From cb4af9d04390fe610454af1b5bef6c4a73c683d3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 10 Jun 2019 16:18:58 +0100 Subject: [PATCH] Fix test fail --- src/components/structures/InteractiveAuth.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/structures/InteractiveAuth.js b/src/components/structures/InteractiveAuth.js index 6fedfbcfd9..e1722c9745 100644 --- a/src/components/structures/InteractiveAuth.js +++ b/src/components/structures/InteractiveAuth.js @@ -92,7 +92,7 @@ export default React.createClass({ this._unmounted = false; this._authLogic = new InteractiveAuth({ authData: this.props.authData, - doRequest: this.props.makeRequest, + doRequest: this._requestCallback, setBusy: this._setBusy, inputs: this.props.inputs, stateUpdated: this._authStateUpdated, @@ -168,6 +168,13 @@ export default React.createClass({ }); }, + _requestCallback: function(auth) { + // This wrapper just exists because the js-sdk passes a second + // 'busy' param for backwards compat. This throws the tests off + // so discard it here. + return this.props.makeRequest(auth); + }, + _setBusy: function(busy) { // if we've started doing stuff, reset the error messages if (busy) {