Skip to content

Commit

Permalink
oop
Browse files Browse the repository at this point in the history
  • Loading branch information
skylarbarrera committed Oct 16, 2023
1 parent e0c1ee4 commit 9e03cac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/exchange/NetworkSwitcherv2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const NetworkSwitcherv2 = ({
const { colors } = useTheme();
const scrollViewRef = useRef<ScrollView>(null);
const networkMenuItems = useMemo(() => {
return sortNetworks(ethereumUtils.getNetworkFromChainId(currentChainId))
return sortNetworks()
.filter(network => network.features.swaps)
.map(network => ({
chainId: network.id,
Expand All @@ -34,7 +34,7 @@ const NetworkSwitcherv2 = ({
type:
network.value !== Network.mainnet ? network.value : AssetType.token,
}));
}, [currentChainId]);
}, []);

const radialGradientProps = (network: Network) => {
return {
Expand Down

0 comments on commit 9e03cac

Please sign in to comment.