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

chore: cherry-pick #11631 #11702

Merged

Conversation

sahar-fehri
Copy link
Contributor

@sahar-fehri sahar-fehri commented Oct 9, 2024

This PR cherry-picks #11631

## **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.
@sahar-fehri sahar-fehri requested a review from a team as a code owner October 9, 2024 09:32
Copy link
Contributor

github-actions bot commented Oct 9, 2024

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.

Copy link

sonarqubecloud bot commented Oct 9, 2024

@sahar-fehri sahar-fehri changed the title fix: hotfix/issue-11539 (#11631) chore: cherry-pick #11631 Oct 9, 2024
@metamaskbot metamaskbot added the INVALID-PR-TEMPLATE PR's body doesn't match template label Oct 9, 2024
@NicolasMassart NicolasMassart added the Run Smoke E2E Triggers smoke e2e on Bitrise label Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: b3afd4f
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/bd313bd0-4992-4e30-aad8-9495edc4c830

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

Copy link
Contributor

@NicolasMassart NicolasMassart left a 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.

@NicolasMassart NicolasMassart merged commit 58d08f1 into release/7.33.0 Oct 9, 2024
43 checks passed
@NicolasMassart NicolasMassart deleted the fix/cherry-pick-tokenExchangeRates-fix branch October 9, 2024 12:02
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
INVALID-PR-TEMPLATE PR's body doesn't match template Run Smoke E2E Triggers smoke e2e on Bitrise team-assets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants