Skip to content

Commit

Permalink
validate-roster: Show numbers of players per matchup
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe2k committed Jan 12, 2024
1 parent 7261764 commit 1323253
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion frontend/src/components/ValidateRoster.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,15 @@ const ValidateRoster = () => {
{matchUp => (
<>
<h4 class="text-l font-bold text-blue-400 dark:text-blue-300">
{matchUp.label}
{matchUp.label} (
{
teamRegistrations.filter(
r =>
(!matchUp.value && !r.person.player) ||
r.person.player?.match_up === matchUp.value
).length
}
)
</h4>
<ul class="w-200 my-4 rounded-lg border border-gray-200 bg-white text-sm font-medium text-gray-900 dark:border-gray-600 dark:bg-gray-700 dark:text-white">
<For
Expand Down

0 comments on commit 1323253

Please sign in to comment.