diff --git a/app/leaderboard/[duration]/Leaderboard.tsx b/app/leaderboard/[duration]/Leaderboard.tsx index 09e6d5d8..34077441 100644 --- a/app/leaderboard/[duration]/Leaderboard.tsx +++ b/app/leaderboard/[duration]/Leaderboard.tsx @@ -81,7 +81,11 @@ export default function Leaderboard(props: Props) { ) => { const params = new URLSearchParams(searchParams.toString()); if (Array.isArray(value)) { - params.set(key, value.join(",")); + if (value.length) { + params.set(key, value.join(",")); + } else { + params.delete(key); + } } else { params.set(key, value.toString()); }