Participants eliminated in a non-scoring bracket round (e.g. Round of 16 in a 16-team bracket) receive finalPosition=0 and isPartialScore=false. The previous calculateTeamScore loop only entered participantsCompleted++ when finalPosition > 0, so these participants were silently treated as still "remaining" in the standings table — causing e.g. a team with one eliminated participant to show "25 remaining" instead of "24 remaining". Fix: add an else-if branch that increments participantsCompleted for any finalized result (isPartialScore=false) regardless of finalPosition value. The condition is intentionally broader than `=== 0` to also cover the theoretical case of finalPosition=null with isPartialScore=false. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||