fix: adjust the apiLogoUrl logic to handles cases when icon is an object with uri key#7917
Conversation
|
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7917 +/- ##
=======================================
Coverage 37.39% 37.39%
=======================================
Files 1052 1052
Lines 28175 28175
Branches 2517 2517
=======================================
Hits 10536 10536
Misses 17040 17040
Partials 599 599 ☔ View full report in Codecov by Sentry. |
|
This seems to be related to #7920 Reminder to describe the purpose of the change in the PR title/description, not just what has changed. I didn't realize this was related to fixing a crash at first. See here for more about that: https://github.com/MetaMask/contributor-docs/blob/main/docs/pull-requests.md#use-the-description-to-explain-the-need-and-solution |
|
Kudos, SonarCloud Quality Gate passed! |
|
Fixed for both Android and iOS |
| * Icon image to use, this substitutes getting the icon from the url | ||
| */ | ||
| icon: PropTypes.string, | ||
| icon: PropTypes.oneOfType([PropTypes.string | PropTypes.object]), |
There was a problem hiding this comment.
This is wrong, this is returning a number as a bitwise operation result.
There was a problem hiding this comment.
The expected parameter is an array of PropTypes type properties
| icon: PropTypes.oneOfType([PropTypes.string | PropTypes.object]), | |
| icon: PropTypes.oneOfType([PropTypes.string, PropTypes.object]), |








Description
Adjust the
apiLogoUrllogic to handles cases wheniconis an object withurikeyRelated issues
Fixes: #
Manual testing steps
Screenshots/Recordings
Before
After
Screen.Recording.2023-11-23.at.14.22.22.mov
Pre-merge author checklist
Pre-merge reviewer checklist