MetaMask / MetaMask/metamask-mobile

[Bug]: Switching to recently add network even when the Canceling the switch

Open
#12,596 1 comment 0 reactions 1 assignee Claimed by @darkwing View on GitHub
area-general-ui external-contributor INVALID-ISSUE-TEMPLATE regression-prod-12.18.2 regression-prod-7.37.0 Sev2-normal team-wallet-api-platform type-bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.