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; }