From a8c764465fb440be0607754ba582f2c3f9a21587 Mon Sep 17 00:00:00 2001 From: Regalijan Date: Wed, 3 Jul 2024 02:03:49 -0400 Subject: [PATCH] Fix report page breaking --- app/routes/events-team_.report.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/routes/events-team_.report.tsx b/app/routes/events-team_.report.tsx index 4978861..9f84549 100644 --- a/app/routes/events-team_.report.tsx +++ b/app/routes/events-team_.report.tsx @@ -68,7 +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; + for (const member of Object.keys(memberMap)) + if (memberMap[member].points < 30) memberMap[member].points -= 30; return memberMap; }