Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #8462: Custom Networks list not updated when opened via browser settings #8464

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/BraveWallet/Crypto/Stores/NetworkStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public class NetworkStore: ObservableObject, WalletObserverStore {
self.isSwapSupported = await swapService.isSwapSupported(chain.chainId)
}

@MainActor private func updateChainList() async {
@MainActor func updateChainList() async {
// fetch all networks for all coin types
self.allChains = await rpcService.allNetworksForSupportedCoins(respectTestnetPreference: false)

Expand Down
3 changes: 3 additions & 0 deletions Sources/BraveWallet/Settings/CustomNetworkListView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ struct CustomNetworkListView: View {
}
.navigationViewStyle(StackNavigationViewStyle())
}
.task {
await networkStore.updateChainList()
}
}
}

Expand Down