diff --git a/src/components/WalletsModal/SelectChainSection/SelectChainSection.tsx b/src/components/WalletsModal/SelectChainSection/SelectChainSection.tsx index c864ba1..f54ddb5 100644 --- a/src/components/WalletsModal/SelectChainSection/SelectChainSection.tsx +++ b/src/components/WalletsModal/SelectChainSection/SelectChainSection.tsx @@ -27,6 +27,11 @@ export const SelectChainSection = ({ }: IProps) => { const context = useContext(WalletsContext) + const visibleChainOptions = useMemo(() => { + const hiddenChains = context?.hiddenChains || [] + return CHAIN_OPTIONS.filter((chain) => !hiddenChains.includes(chain.value)) + }, [context?.hiddenChains]) + const preSelectedChains = useMemo(() => { const injectedChains = context?.getInjectedChains() const connectedChains = injectedChains?.xdefi || injectedChains?.ctrl || [] @@ -160,7 +165,7 @@ export const SelectChainSection = ({ return ( - {CHAIN_OPTIONS.map((chain) => ( + {visibleChainOptions.map((chain) => ( { return this.currentProviders[providerId] }