diff --git a/src/app/leaderboards/team/[raid]/speedrun/[category]/page.tsx b/src/app/leaderboards/team/[raid]/speedrun/[category]/page.tsx index cd46ecc3..713b14c2 100644 --- a/src/app/leaderboards/team/[raid]/speedrun/[category]/page.tsx +++ b/src/app/leaderboards/team/[raid]/speedrun/[category]/page.tsx @@ -101,6 +101,11 @@ export default async function Page({ params }: DynamicParams) { notFound() } + const variable = SpeedrunVariables[raid.path]?.variable + if (category && (!variable || !variable.values[category as RTABoardCategory])) { + notFound() + } + return (