From 3854c032780da2660258a27b93f80f75ebf66b57 Mon Sep 17 00:00:00 2001 From: "seer-by-sentry[bot]" <157164994+seer-by-sentry[bot]@users.noreply.github.com> Date: Fri, 26 Jun 2026 23:11:54 +0000 Subject: [PATCH] Fix WEBSITE-3F: Guard against invalid speedrun categories --- .../leaderboards/team/[raid]/speedrun/[category]/page.tsx | 5 +++++ 1 file changed, 5 insertions(+) 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 (