The flex count was calculated as `totalPicks - totalSportsInSeason`, which always returned 0 when a team drafted multiple participants from the same sport (e.g. 2 picks from UEFA Champions League with 2 sports in season = 2 - 2 = 0). Now uses the number of unique sports the team has actually drafted from, so 2 picks in 1 sport correctly shows 1 flex used. https://claude.ai/code/session_01DZ6jqgZTDEmJucanBtRCtM |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| draft | ||
| scoring | ||
| sports | ||
| standings | ||
| ui | ||
| AutodraftSettings.tsx | ||
| DraftGrid.tsx | ||
| DraftSidebar.tsx | ||
| navbar.tsx | ||
| NotificationSettings.tsx | ||
| ParticipantSelector.tsx | ||
| StandingsTable.tsx | ||