-
Notifications
You must be signed in to change notification settings - Fork 300
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
fix: fixed redirection back to dp2p #7609
fix: fixed redirection back to dp2p #7609
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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-nada-deriv-nada-88485back-to-p2p-fix.binary.sx/ |
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #7609 +/- ##
==========================================
+ Coverage 20.72% 20.78% +0.06%
==========================================
Files 1538 1553 +15
Lines 35945 36057 +112
Branches 7031 7058 +27
==========================================
+ Hits 7449 7495 +46
- Misses 27750 27823 +73
+ Partials 746 739 -7
... and 54 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
className='proof-of-identity__redirect' | ||
onClick={() => { | ||
if (platforms[from_platform.name?.toLowerCase()].is_hard_redirect) { | ||
window.location.href = platforms[from_platform.name?.toLowerCase()].url; |
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.
This pattern may cause security issues, please change it like this 🙏
window.location.href = platforms[from_platform.name?.toLowerCase()].url; | |
const url = platforms[from_platform.name?.toLowerCase()].url; | |
window.location.href = url; |
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.
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.
updated
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 👍
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
The base branch was changed.
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
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
49b7cf9
0d6a836
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
⏳ Generating Lighthouse report... |
Changes:
Please include a summary of the change and which issue is fixed below:
Fixed redirection issue onclick backtop2p button after poi submission
When you need to add unit test
When you need to add integration test
Test coverage checklist (for reviewer)
Type of change