Skip to content

Commit

Permalink
Add resumed check when throwing an CM error
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomazFB committed Mar 20, 2024
1 parent f0dbe48 commit 9f4146d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,10 @@ public void onWebauthnChallengeReceived(WebauthnChallengeReceived event) {
return null;
},
error -> {
String errorMessage = getString(R.string.login_error_security_key);
handleWebauthnError(AuthenticationErrorType.WEBAUTHN_FAILED, errorMessage);
if (isVisible() && isResumed()) {
String errorMessage = getString(R.string.login_error_security_key);
handleWebauthnError(AuthenticationErrorType.WEBAUTHN_FAILED, errorMessage);
}
return null;
}
);
Expand Down

0 comments on commit 9f4146d

Please sign in to comment.