MetaMask / MetaMask/metamask-mobile
[Bug]: Token network badge icons become very tiny after token list reorders due to price updates
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
### Describe the bug
On the home screen token list, some token network badge icons are extremely small (microscopic) — barely visible. The issue affects tokens that are close in fiat value and frequently swap positions in the list as asset prices update. When token prices update and cause tokens to reorder in the list, the network badge icons for the affected tokens render at a microscopic size. Tokens with stable list positions maintain the correct badge size.
Device state logs: [1728994199953767.txt](https://github.com/user-attachments/files/25886850/1728994199953767.txt)
### Expected behavior
All token network badge icons in the token list should display at a consistent, properly sized scale regardless of list reordering caused by price updates.
### Screenshots/Recordings
https://consensys.zoom.us/clips/share/_DpmEyypTSSzWsDqgx_4AA
### Steps to reproduce
1. Open the app and go to the home screen
2. Have multiple tokens with similar fiat values that cause frequent reordering as prices update
3. Observe the token list as prices update and tokens swap positions
4. Observe: tokens that swapped positions now have extremely tiny/microscopic network badge icons
### Error messages or log output
```
```
### Where was this bug found?
Internal release testing
### Version
7.69.0
### Build number
3954
### Build type
_No response_
### Device
Samsung Galaxy A42
### Operating system
Android 13
### Additional context
_No response_
### Severity
_To be added after bug submission by internal support / PM:_
Contributor guide
Research direction
Start at the home screen token list and reproduce the issue with multiple tokens whose similar fiat values cause frequent price-based reordering. Compare the network badge icon sizes before and after positions change; done means all affected badges remain consistently and visibly sized on Android.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, react-native, typescript
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100