Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix report page breaking
  • Loading branch information
regalijan committed Jul 3, 2024
1 parent 7bd1526 commit a8c7644
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/routes/events-team_.report.tsx
Expand Up @@ -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;
}
Expand Down

0 comments on commit a8c7644

Please sign in to comment.