MetaMask / MetaMask/metamask-mobile
[Bug]: Hide tokens without balance still displays tokens with 0 balance when enabled from settings
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
### Describe the bug
When `Hide tokens without balance` is enabled from General settings, these tokes are still displayed in the token list
### Expected behavior
When `Hide tokens without balance` is enabled from General settings, tokens with 0 balance should not appear in the token list
### Screenshots/Recordings
https://github.com/user-attachments/assets/8466492f-81ee-45b5-853a-b8f034509ad8
### Steps to reproduce
1. Go to Tokens
2. Import tokens with 0 balance
3. Go to General Settings
4. Enable Hide tokens without balance
5. Go to Tokens
6. Notice the tokens with 0 balance are still displayed in the token list
### Error messages or log output
```shell
```
### Where was this bug found?
Internal release testing
### Version
7.73.0
### Build number
4334
### Build type
None
### Device
Pixel 6 Pro, iPhone 15
### Operating system
Android, iOS
### Additional context
_No response_
### Severity
_No response_
Contributor guide
Research direction
Start by reproducing the issue in the Tokens screen using the General Settings option on Android or iOS, then trace how the setting affects the token list. Confirm the fix by checking that imported tokens with a 0 balance disappear when the option is enabled and remain visible when it is disabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- 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
- 65/100