From 9e03cac596c24c17cd62d634f90cd754ad64b386 Mon Sep 17 00:00:00 2001 From: skylarbarrera Date: Mon, 16 Oct 2023 12:48:49 -0400 Subject: [PATCH] oop --- src/components/exchange/NetworkSwitcherv2.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {