diff --git a/app/components/UI/NetworkModal/index.tsx b/app/components/UI/NetworkModal/index.tsx index 3a1e6752045d..4da8d8d5f1b6 100644 --- a/app/components/UI/NetworkModal/index.tsx +++ b/app/components/UI/NetworkModal/index.tsx @@ -245,7 +245,7 @@ const NetworkModals = (props: NetworkProps) => { } if (networkClientId) { - NetworkController.setActiveNetwork(networkClientId); + await NetworkController.setActiveNetwork(networkClientId); } onClose(); @@ -271,7 +271,7 @@ const NetworkModals = (props: NetworkProps) => { updatedNetwork?.rpcEndpoints?.[updatedNetwork.defaultRpcEndpointIndex] ?? {}; - NetworkController.setActiveNetwork(networkClientId); + await NetworkController.setActiveNetwork(networkClientId); }; const handleNewNetwork = async (