From eb0723ced9a7bb901cf6dacbd5492d132a6837c3 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 3 Jul 2024 01:56:28 -0400 Subject: [PATCH] Handle 30 point penalty in report page --- app/routes/events-team_.report.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/routes/events-team_.report.tsx b/app/routes/events-team_.report.tsx index da37eae..4978861 100644 --- a/app/routes/events-team_.report.tsx +++ b/app/routes/events-team_.report.tsx @@ -68,6 +68,8 @@ export async function loader({ context }: { context: RequestContext }) { memberMap[event.created_by].points += 10; } + for (const member of memberMap) if (member.points < 30) member.points -= 30; + return memberMap; }