diff --git a/src/pages/index.tsx b/src/pages/index.tsx index f18f4dc4f1..5283ac17c4 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -5,13 +5,15 @@ import { AppRoutes } from '@/config/routes' const IndexPage: NextPage = () => { const router = useRouter() - const { chain } = router.query useEffect(() => { if (router.pathname === AppRoutes.index) { - router.replace(chain ? `${AppRoutes.welcome}?chain=${chain}` : AppRoutes.welcome) + router.replace({ + pathname: AppRoutes.welcome, + query: router.query, + }) } - }, [router, chain]) + }, [router]) return <> }