-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
chore: cherry-pick #11631 #11702
chore: cherry-pick #11631 #11702
Conversation
## **Description** Fixes token details view when tokenExchangeRates have not yet resolved, or are simply undefined. ## **Related issues** Fixes: #11539 ## **Manual testing steps** 1. Go to `TokenDetails` 2. Hardcode `tokenExchangeRates` to `undefined` 3. App should not crash. Token details will be empty. Error was when pressing native gas token, but also check others. ## **Screenshots/Recordings** Bug: <img width="300" alt="Screenshot 2024-10-04 at 10 39 05 AM" src="https://github.com/user-attachments/assets/70f2eee5-08f1-4cec-b07c-fd6f544c8532"> Fix: <img width="300" alt="Screenshot 2024-10-04 at 10 40 31 AM" src="https://github.com/user-attachments/assets/05420c64-014f-43ae-90ba-d772cb421d9a"> ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Contributor Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Quality Gate passedIssues Measures |
Bitrise✅✅✅ Commit hash: b3afd4f Note
|
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.
Looks good to me: this cherry pick matches the original PR.
This PR cherry-picks #11631