MetaMask / MetaMask/metamask-mobile
[Bug]: Switching to recently add network even when the Canceling the switch
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
**Describe the bug**
When adding any additional modal on the Select a network modal, the Add custom network modal should appear to confirm the action. After confirming the action, the New network added modal should appear to validate if the user would need to change to the recently added network. Currently, when canceling the switch to the just recently added network, the app still change to the recently added network. Instead of remaining on the previous network.
**Expected behavior**
The user should remain in the previous network instead of switching
**Screenshots/Recordings**
https://github.com/user-attachments/assets/818832b5-0ae5-45e9-95e1-af2f8142b784
**Steps to reproduce**
1. Tap the network icon on the wallet view
2. Tap on the Add button on any Additional Networks on the Select a Network modal
3. Tap the Confirm button on the Add custom network modal
4. Tap the Close button on the New network added modal
**Error messages or log output**
```shell
```
**Detection stage**
In production (default)
**Version**
7.37.0
**Build type**
None
**Device**
iPhone 16
**Operating system**
iOS
Contributor guide
Assessment
This issue has not been assessed yet.