In non-scoring rounds (R32 → R16 in FIFA 48), winners advance without earning any points. The previous code set winnerUsername unconditionally for any match where the winner had an owner, so when a loser was eliminated (triggering showLoser=true), the advancing winner appeared in the "Scored Matches" section and triggered a notification even though their fantasy score was unchanged. Gate winnerUsername on winnerScoreChanged, matching the existing guard on winnerDiscordUserId. A manager is now only mentioned when their team actually earned or changed points this round. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UXKpR3MZJn5Zof1AKeETFM |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||