-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WALL] Fix POA screen switching condition and POI status hook #11687
[WALL] Fix POA screen switching condition and POI status hook #11687
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -47,7 +47,7 @@ const usePOI = () => { | |||
const user_country_code = get_settings_data?.citizen || get_settings_data?.country_code; | |||
const matching_residence_data = residence_list_data?.find(r => r.value === user_country_code); | |||
const is_idv_supported = matching_residence_data?.identity?.services?.idv?.is_country_supported; | |||
const is_onfido_supported = matching_residence_data?.identity?.services?.onfido?.documents_supported; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
documents_supported
is an empty object {}
, is_onfido_supported
will always be truthy
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-adrienne-deriv-fix-poa-screen-not-switched.binary.sx/ |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
🚀 Smoke test run (1) passed successfully! |
🚀 Smoke test run (2) passed successfully! |
Changes:
Please provide a summary of the change.
usePOI
where Onfido status check for a country is incorrectThe bug
Screen.Recording.2023-11-23.at.11.58.39.AM.mov
Screenshots:
Please provide some screenshots of the change.