diff --git a/components/AppSwitch.tsx b/components/AppSwitch.tsx index 4a9f35df..9d7b26c9 100644 --- a/components/AppSwitch.tsx +++ b/components/AppSwitch.tsx @@ -1,20 +1,11 @@ -import { VFC, useEffect } from "react"; +import { VFC } from "react"; import { css } from "@emotion/react"; import Link from "next/link"; import { Theme } from "@mui/material"; -import useSectionUri from "@/hooks/useSectionUri"; -import { useMetaMaskExtension } from "@/providers/MetaMaskExtensionProvider"; -import { ensureEthereumChain } from "@/utils"; +import { useSectionUri } from "@/hooks"; const Switch: VFC = () => { const section = useSectionUri(); - const { extension } = useMetaMaskExtension(); - - useEffect(() => { - if (!extension) return; - - if (section === "bridge") void ensureEthereumChain(extension); - }, [extension, section]); return (