From be96cb9b5c88a4bbd279c1cc98f14fc89441aaea Mon Sep 17 00:00:00 2001 From: Matthew Wall Date: Wed, 18 Dec 2024 17:28:14 -0500 Subject: [PATCH] fix network switcher using name instead of label (#6350) --- src/components/NetworkSwitcher.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/NetworkSwitcher.tsx b/src/components/NetworkSwitcher.tsx index f11ad208932..14fa91ab5cf 100644 --- a/src/components/NetworkSwitcher.tsx +++ b/src/components/NetworkSwitcher.tsx @@ -320,7 +320,7 @@ function AllNetworksSection({ } function NetworkOption({ chainId, selected }: { chainId: ChainId; selected: SharedValue }) { - const chainName = useBackendNetworksStore.getState().getChainsName()[chainId]; + const chainName = useBackendNetworksStore.getState().getChainsLabel()[chainId]; const chainColor = getChainColorWorklet(chainId, true); const isSelected = useDerivedValue(() => selected.value === chainId); const { animatedStyle } = useNetworkOptionStyle(isSelected, chainColor);