Skip to content

Commit

Permalink
More careful
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Nov 1, 2024
1 parent 8ef0c47 commit 8384ac3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/worker/views/powerRankings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ const otherToRanks = (
};
}[],
) => {
if (teams.length === 0) {
return;
}

for (const field of ["other", "otherCurrent"] as const) {
for (const key of Object.keys(teams[0].powerRankings[field])) {
const values = teams.map(t => t.powerRankings[field][key]);
Expand Down

0 comments on commit 8384ac3

Please sign in to comment.