Skip to content
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

Merged

Conversation

adrienne-deriv
Copy link
Contributor

@adrienne-deriv adrienne-deriv commented Nov 23, 2023

Changes:

Please provide a summary of the change.

  • Fixed an issue where POA screen is not switched when POA status is not pending/verified
  • Fixed an issue in usePOI where Onfido status check for a country is incorrect

The bug

Screen.Recording.2023-11-23.at.11.58.39.AM.mov

Screenshots:

Please provide some screenshots of the change.

Copy link

vercel bot commented Nov 23, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Nov 23, 2023 4:22am

@@ -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;
Copy link
Contributor Author

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

Copy link
Contributor

github-actions bot commented Nov 23, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/11687](https://github.com/binary-com/deriv-app/pull/11687)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-adrienne-deriv-fix-poa-screen-not-switched.binary.sx?qa_server=red.derivws.com&app_id=32189
    - **Original**: https://deriv-app-git-fork-adrienne-deriv-fix-poa-screen-not-switched.binary.sx
- **App ID**: `32189`

Copy link
Contributor

github-actions bot commented Nov 23, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 16
🟧 Accessibility 75
🟢 Best practices 92
🟧 SEO 85
🟧 PWA 80

Lighthouse ran with https://deriv-app-git-fork-adrienne-deriv-fix-poa-screen-not-switched.binary.sx/

Copy link

sonarcloud bot commented Nov 23, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
14.9% 14.9% Duplication

Copy link
Contributor

@farhan-nurzi-deriv farhan-nurzi-deriv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@coveralls
Copy link

coveralls commented Nov 23, 2023

Coverage Status

coverage: 28.201% (+0.007%) from 28.194%
when pulling 7c34191 on adrienne-deriv:fix-poa-screen-not-switched
into befa74c on binary-com:master.

Copy link
Contributor

🚀 Smoke test run (1) passed successfully!

Copy link
Contributor

🚀 Smoke test run (2) passed successfully!

@matin-deriv matin-deriv merged commit 9d2cc67 into binary-com:master Nov 23, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants