diff --git a/app/routes/u.$identifier/seasons.tsx b/app/routes/u.$identifier/seasons.tsx index 14aa96510..22fc926fb 100644 --- a/app/routes/u.$identifier/seasons.tsx +++ b/app/routes/u.$identifier/seasons.tsx @@ -1,8 +1,12 @@ import type { LoaderArgs, SerializeFrom } from "@remix-run/node"; import { Link, + useActionData, + useFetcher, + useFormAction, useLoaderData, useMatches, + useNavigation, useSearchParams, } from "@remix-run/react"; import clsx from "clsx"; @@ -572,6 +576,7 @@ function Matches() { }; React.useEffect(() => { + if (data.matches.currentPage === 1) return; ref.current?.scrollIntoView({ block: "center", });