Skip to content

Commit

Permalink
fix: promise resolver when request is blocked (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
yashim-deriv authored Feb 13, 2024
1 parent fc931a6 commit 59e91c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deriv_api/DerivAPIBasic.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class DerivAPIBasic extends DerivAPICalls {
async send(...args) {
const api_type = Object.keys(args[0])[0];
if (this.is_request_blocked && !this.excluded_request_block.includes(api_type)) {
return new Promise();
return new Promise(() => {});
}

const send_will_be_called = this.callMiddleware('sendWillBeCalled', { args });
Expand Down

1 comment on commit 59e91c5

@t4vvd
Copy link

@t4vvd t4vvd commented on 59e91c5 Apr 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/deriv_api/DerivAPIBasic.js

Please sign in to comment.