When ESPN's API returns teams directly on the conference group (no division children), all teams got division="" so only one team globally received divisionRank=1. Fix by resolving division from a hardcoded team-name map as a fallback, and scoping divisionRank computation per conference+division to prevent AL/NL teams from sharing a group. https://claude.ai/code/session_01288dkXYwKJUfXrEhPd8rmo |
||
|---|---|---|
| .. | ||
| components | ||
| contexts | ||
| hooks | ||
| lib | ||
| models | ||
| routes | ||
| services | ||
| test | ||
| types | ||
| utils | ||
| welcome | ||
| app.css | ||
| entry.client.tsx | ||
| entry.server.tsx | ||
| root.tsx | ||
| routes.ts | ||