Skip to content

Commit

Permalink
Do not check for another status if user cancelled
Browse files Browse the repository at this point in the history
Note that we still need the same check within the 'then' clause
since a check might have been started before the user cancels
and the response comes in after cancellation.

Ref ActiveLogin#143
  • Loading branch information
Daniel Kvist committed Nov 5, 2019
1 parent 69a031e commit 485f351
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -163,6 +163,10 @@
}
function checkStatus(requestVerificationToken, returnUrl, loginOptions, orderRef) {
if (loginIsCancelledByUser) {
return;
}
postJson(options.bankIdStatusApiUrl, requestVerificationToken,
{
'orderRef': orderRef,
Expand Down

0 comments on commit 485f351

Please sign in to comment.