From e448037a55598441f626f2e34b1944273ba320ad Mon Sep 17 00:00:00 2001 From: brandonw504 Date: Sun, 28 Apr 2024 10:50:29 -0700 Subject: [PATCH] Update --- app/(api)/_utils/scoring/rankTeams.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/app/(api)/_utils/scoring/rankTeams.ts b/app/(api)/_utils/scoring/rankTeams.ts index dd8e369..d4b4dbf 100644 --- a/app/(api)/_utils/scoring/rankTeams.ts +++ b/app/(api)/_utils/scoring/rankTeams.ts @@ -108,12 +108,13 @@ export default async function rankTeams(teams: Team[]) { } topEntries.sort((entry1, entry2) => entry2.score - entry1.score); - // if ( - // track.name !== 'Best Hack for Life of Kai' || - // track.name !== 'Best Hack for DCMH' || - // track.name !== 'Best Hack for AggieHouse' - // ) - // topEntries.splice(10); + if ( + track.name !== ('Best Hack for Life of Kai' as string) || + track.name !== ('Best Hack for DCMH' as string) || + track.name !== ('Best Hack for AggieHouse' as string) + ) { + topEntries.splice(10); + } trackResults.push({ track: track.name,