diff --git a/src/components/exchange/NetworkSwitcherv2.tsx b/src/components/exchange/NetworkSwitcherv2.tsx index 7057ad875f0..3b412e84862 100644 --- a/src/components/exchange/NetworkSwitcherv2.tsx +++ b/src/components/exchange/NetworkSwitcherv2.tsx @@ -25,7 +25,7 @@ const NetworkSwitcherv2 = ({ const { colors } = useTheme(); const scrollViewRef = useRef(null); const networkMenuItems = useMemo(() => { - return sortNetworks(ethereumUtils.getNetworkFromChainId(currentChainId)) + return sortNetworks() .filter(network => network.features.swaps) .map(network => ({ chainId: network.id, @@ -34,7 +34,7 @@ const NetworkSwitcherv2 = ({ type: network.value !== Network.mainnet ? network.value : AssetType.token, })); - }, [currentChainId]); + }, []); const radialGradientProps = (network: Network) => { return {