MetaMask / MetaMask/metamask-extension

[Bug]: Accounts - I'm able to hide the selected Account

Open
#46,446 0 comments 0 reactions 0 assignees View on GitHub
regression-RC-13.50.0 Sev2-normal team-accounts-framework type-bug
Dominant language
TypeScript
Stars
13.2k
Forks
5.6k
Avg merge
2d 5h
Merged PRs (30d)
451

Description

### Describe the bug

I'm able to hide the selected Account. Then, this account disappears from the account list, however I still see this account as the selected one.

### Expected behavior

Either we should not be able to hide the current selected account, or if we do, we should then switch the selected account for a non hidden one

### Screenshots/Recordings

https://github.com/user-attachments/assets/5795b7b4-fad6-408a-847c-2910a7eaef2b

### Steps to reproduce

1. Select an account ie Account 2
2. Click Accounts
3. Hide Account 2
4. See it disappears from the Accounts list
5. Now close the Account list menu
6. See selected account is Account 2 (the hidden one)

### Error messages or log output

```shell

```

### Where was this bug found?

Internal release testing

### Version

13.50.0

### Build type

None

### Browser

Chrome

### Operating system

MacOS

### Hardware wallet

_No response_

### Additional context

_No response_

### Severity

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in the Accounts menu with a selected account, then trace the account-list and selected-account UI paths. Verify the behavior when the selected account is hidden, and consider the issue done when the UI either prevents hiding it or selects a visible account afterward.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.