diff --git a/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch b/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch new file mode 100644 index 000000000000..4fc71d3c88eb Binary files /dev/null and b/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch differ diff --git a/package.json b/package.json index 100219e90d91..42c2331a91f4 100644 --- a/package.json +++ b/package.json @@ -327,7 +327,7 @@ "@metamask/rate-limit-controller": "^3.0.0", "@metamask/safe-event-emitter": "^3.1.1", "@metamask/scure-bip39": "^2.0.3", - "@metamask/selected-network-controller": "^12.0.1", + "@metamask/selected-network-controller": "patch:@metamask/selected-network-controller@npm%3A12.0.1#~/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch", "@metamask/signature-controller": "^12.0.0", "@metamask/smart-transactions-controller": "^10.0.1", "@metamask/snaps-controllers": "patch:@metamask/snaps-controllers@npm%3A8.0.0#~/.yarn/patches/@metamask-snaps-controllers-npm-8.0.0-7e59688855.patch", diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index bb982674b026..2d2ebdc1d6c3 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -1450,10 +1450,11 @@ export const getConnectedSitesListWithNetworkInfo = createDeepEqualSelector( getConnectedSitesList, getAllDomains, getAllNetworks, - (sitesList, domains, networks) => { + getSelectedNetworkClientId, + (sitesList, domains, networks, selectedNetworkClientId) => { Object.keys(sitesList).forEach((siteKey) => { const connectedNetwork = networks.find( - (network) => network.id === domains[siteKey], + (network) => network.id === domains[siteKey] || selectedNetworkClientId, ); // For the testnets, if we do not have an image, we will have a fallback string sitesList[siteKey].networkIconUrl = diff --git a/yarn.lock b/yarn.lock index a774c54ebe3c..a7716262981d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5590,7 +5590,7 @@ __metadata: languageName: node linkType: hard -"@metamask/selected-network-controller@npm:^12.0.1": +"@metamask/selected-network-controller@npm:12.0.1": version: 12.0.1 resolution: "@metamask/selected-network-controller@npm:12.0.1" dependencies: @@ -5607,6 +5607,23 @@ __metadata: languageName: node linkType: hard +"@metamask/selected-network-controller@patch:@metamask/selected-network-controller@npm%3A12.0.1#~/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch": + version: 12.0.1 + resolution: "@metamask/selected-network-controller@patch:@metamask/selected-network-controller@npm%3A12.0.1#~/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch::version=12.0.1&hash=808666" + dependencies: + "@metamask/base-controller": "npm:^5.0.1" + "@metamask/json-rpc-engine": "npm:^8.0.1" + "@metamask/network-controller": "npm:^18.1.0" + "@metamask/permission-controller": "npm:^9.0.2" + "@metamask/swappable-obj-proxy": "npm:^2.2.0" + "@metamask/utils": "npm:^8.3.0" + peerDependencies: + "@metamask/network-controller": ^18.0.0 + "@metamask/permission-controller": ^9.0.0 + checksum: 04471191561f4305b651bbefc5c6885eb26878fb24ee9ecf77f9a0f24367a33132453e6c1e8f315b8374fecbc0336eeb83a3043dfbbc3af1b2c13965a87383a0 + languageName: node + linkType: hard + "@metamask/signature-controller@npm:^12.0.0": version: 12.0.0 resolution: "@metamask/signature-controller@npm:12.0.0" @@ -25121,7 +25138,7 @@ __metadata: "@metamask/rate-limit-controller": "npm:^3.0.0" "@metamask/safe-event-emitter": "npm:^3.1.1" "@metamask/scure-bip39": "npm:^2.0.3" - "@metamask/selected-network-controller": "npm:^12.0.1" + "@metamask/selected-network-controller": "patch:@metamask/selected-network-controller@npm%3A12.0.1#~/.yarn/patches/@metamask-selected-network-controller-npm-12.0.1-34b2edf62d.patch" "@metamask/signature-controller": "npm:^12.0.0" "@metamask/smart-transactions-controller": "npm:^10.0.1" "@metamask/snaps-controllers": "patch:@metamask/snaps-controllers@npm%3A8.0.0#~/.yarn/patches/@metamask-snaps-controllers-npm-8.0.0-7e59688855.patch"