Skip to content

Commit

Permalink
fix: populateVerificationStatus authentication fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali(Ako) Hosseini committed Oct 27, 2021
1 parent 2482771 commit 9c239d1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const populateVerificationStatus = account_status => {
const { attempts, document, identity, needs_verification } = {
...account_status.authentication,
attempts: account_status.attempts || {},
needs_verification: account_status.needs_verification || {},
attempts: account_status.authentication.attempts || {},
needs_verification: account_status.authentication.needs_verification || {},
};
const has_poa = !(document && document.status === 'none');
const has_poi = !(identity && identity.status === 'none');
Expand Down

0 comments on commit 9c239d1

Please sign in to comment.