-
Notifications
You must be signed in to change notification settings - Fork 392
[FEQ] Ameerul / FEQ-872 / Getting console error while adding payment method in P2P #11293
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
[FEQ] Ameerul / FEQ-872 / Getting console error while adding payment method in P2P #11293
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| }; | ||
|
|
||
| export default observer(EditPaymentMethodForm); | ||
| export default EditPaymentMethodForm; |
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.
Wrapping this component with observer caused the console logging error issue, which is caused by updating the payment method, which is then updating any observables inside this component whilst it is unmounting.
We don't need to have observer wrapping this component since it doesn't need to listen to any changes except if there are errors whilst updating the payment method
|
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-ameerul-deriv-feq-872-getting-console-80afee.binary.sx/ |
...ages/p2p/src/pages/my-profile/payment-methods/add-payment-method/add-payment-method-form.jsx
Show resolved
Hide resolved
|
Please use the [FEQ] prefix for the PR title |
…-getting-console-error-when-adding-payment-method
…-getting-console-error-when-adding-payment-method
038ced9
|
| GitGuardian id | Secret | Commit | Filename | |
|---|---|---|---|---|
| - | Generic High Entropy Secret | 3134575 | nx.json | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
Our GitHub checks need improvements? Share your feedbacks!
|
Kudos, SonarCloud Quality Gate passed!
|
| onReturn={onReturn} | ||
| portalId='modal_root' | ||
| title={<BuySellModalTitle is_buy={is_buy_advert} />} | ||
| title={getModalTitle()} |
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.
I opted to pass a string instead of the component because this is what caused the console error issues. Because we had passed it as a component, the title prop in Modal component is wrapped inside Text which is strange as we had previously returned it as a Text Component.
We could create another prop for specifically passing a component, but the styles are already there, and we don't need to repeat it again and style it ourselves from the child to the parent.
There's no issue with the MobileFullPageModal, so I had left it as it is
|
⏳ Generating Lighthouse report... |
|
❌ Smoke test run (1) failed. See logs for details: Visit Action |
|
❌ Smoke test run (2) failed. See logs for details: Visit Action |
|
❌ Smoke test run (1) failed. See logs for details: Visit Action |








Changes:
Please provide a summary of the change.
Screenshots:
Please provide some screenshots of the change.
Staging console errors while adding/editing payment method
Screen.Recording.2023-11-09.at.11.24.30.AM.mov
No more console errors while adding/editing payment method
Screen.Recording.2023-11-09.at.11.25.48.AM.mov
Previous Console Error related to payment method in buy sell modal
Screen.Recording.2023-11-30.at.11.44.19.AM.mov
No more error
Screen.Recording.2023-11-30.at.11.44.52.AM.mov