Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Handle 30 point penalty in report page
  • Loading branch information
regalijan committed Jul 3, 2024
1 parent 4a7d27d commit eb0723c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/routes/events-team_.report.tsx
Expand Up @@ -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;
}

Expand Down

0 comments on commit eb0723c

Please sign in to comment.