Skip to content

Commit

Permalink
fix: added a new check for idv-authenticated users (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
farrah-deriv authored Nov 1, 2024
1 parent 33229e9 commit 1df79bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/custom-hooks/usePoiPoaStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ const usePoiPoaStatus = () => {
const documentStatus = data?.authentication?.document?.status;
const identityStatus = data?.authentication?.identity?.status;
const isP2PPoaRequired = data?.p2p_poa_required;
const isPoaAuthenticatedWithIdv = data?.status.includes('poa_authenticated_with_idv');
const isPoaAuthenticatedWithIdv =
data?.status.includes('poa_authenticated_with_idv') ||
data?.status.includes('poa_authenticated_with_idv_photo');
const isPoaPending = documentStatus === 'pending';
const isPoaVerified = documentStatus === 'verified';
const isPoiPending = identityStatus === 'pending';
Expand Down

0 comments on commit 1df79bb

Please sign in to comment.