diff --git a/app/components/Main.tsx b/app/components/Main.tsx index 3c2a595f2..e90048964 100644 --- a/app/components/Main.tsx +++ b/app/components/Main.tsx @@ -1,7 +1,5 @@ import clsx from "clsx"; import type * as React from "react"; -import { isRouteErrorResponse, useRouteError } from "react-router"; -import { useHasRole } from "~/modules/permissions/hooks"; import styles from "./Main.module.css"; export const Main = ({ @@ -19,20 +17,12 @@ export const Main = ({ bigger?: boolean; style?: React.CSSProperties; }) => { - const error = useRouteError(); - const isMinorSupporter = useHasRole("MINOR_SUPPORT"); - const showLeaderboard = - import.meta.env.VITE_FUSE_ENABLED && - !isMinorSupporter && - !isRouteErrorResponse(error); - return (