Skip to content

Commit

Permalink
fix network switcher using name instead of label (#6350)
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Dec 19, 2024
1 parent bd18468 commit be96cb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/NetworkSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function AllNetworksSection({
}

function NetworkOption({ chainId, selected }: { chainId: ChainId; selected: SharedValue<ChainId | undefined> }) {
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);
Expand Down

0 comments on commit be96cb9

Please sign in to comment.