Placement counts (used to break points ties) previously only included fully-finalized participants. A team whose events all resolved first would accumulate real placement counts while tied teams with pending events had zeros, causing the tie to be broken in favour of whichever team finished scoring first rather than on merit. Fix: count a participant's current position toward the tiebreaker regardless of isPartialScore. Their position is the best available signal; if it changes, recalculateStandings reruns and ranks update naturally. Also removes a redundant bounds check (finalPosition > 0 was already asserted by the outer if-condition). 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 | ||