Skip to content

Commit

Permalink
fix: added null check
Browse files Browse the repository at this point in the history
  • Loading branch information
likhith-deriv committed Dec 26, 2023
1 parent ada3320 commit e262190
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const POISubmissionForMT5 = observer(
const {
authentication: { attempts },
} = account_status;
const { service } = attempts?.latest;

const { service } = attempts?.latest ?? {};
const { submissions_left: idv_submissions_left, last_rejected, status } = idv;
const { submissions_left: onfido_submissions_left } = onfido;

Expand Down

0 comments on commit e262190

Please sign in to comment.