From 22f891dd691b4f32c89ed272b48c7868b5ed5d08 Mon Sep 17 00:00:00 2001 From: samueltl21 Date: Tue, 29 Jul 2025 02:54:34 +0000 Subject: [PATCH 1/7] disable group 0 for leaderboard dropdown --- client/src/components/ui/Leaderboard/List.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/src/components/ui/Leaderboard/List.tsx b/client/src/components/ui/Leaderboard/List.tsx index 2fc2222..5f4cbc9 100644 --- a/client/src/components/ui/Leaderboard/List.tsx +++ b/client/src/components/ui/Leaderboard/List.tsx @@ -26,9 +26,10 @@ export default function List() { try { const res = await fetch(`${API_BASE}/details/groups/`); const data: number[] = await res.json(); - setGroups(data); - if (data.length > 0) { - setSelectedGroup(data[0]); + const filteredGroups = data.filter((groupId) => groupId !== 0); + setGroups(filteredGroups); + if (filteredGroups.length > 0) { + setSelectedGroup(filteredGroups[0]); } } catch (err) { console.error("Failed to fetch groups:", err); From 24cd4a75a1c7f694a680d415cf728e4eee5ac1ef Mon Sep 17 00:00:00 2001 From: samueltl21 Date: Tue, 29 Jul 2025 04:51:24 +0000 Subject: [PATCH 2/7] change logo to the name of the event --- client/src/components/ui/navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/ui/navbar.tsx b/client/src/components/ui/navbar.tsx index febfb8b..62c9b64 100644 --- a/client/src/components/ui/navbar.tsx +++ b/client/src/components/ui/navbar.tsx @@ -18,7 +18,7 @@ export default function Navbar() {