Skip to content

Commit

Permalink
Use currentAuthenticatorEnrollment (OKTA-609234)
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Jul 7, 2023
1 parent 875791e commit 7dcadb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/idx/remediators/Base/SelectAuthenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export class SelectAuthenticator<T extends SelectAuthenticatorValues = SelectAut
// Don't select current authenticator (OKTA-612939)
const isCurrentAuthenticator = context?.currentAuthenticator
&& context?.currentAuthenticator.value.id === matchedOption.relatesTo?.id;
return !isCurrentAuthenticator;
const isCurrentAuthenticatorEnrollment = context?.currentAuthenticatorEnrollment
&& context?.currentAuthenticatorEnrollment.value.id === matchedOption.relatesTo?.id;
return !isCurrentAuthenticator && !isCurrentAuthenticatorEnrollment;
}

return false;
Expand Down

0 comments on commit 7dcadb2

Please sign in to comment.