mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Fix test fail
This commit is contained in:
parent
a8a4ca2ed1
commit
cb4af9d043
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user