Skip to content

Commit

Permalink
some sort fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Geczy committed Dec 2, 2023
1 parent 7be1b56 commit 146808a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/dota/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ export interface DelayedGames {
items: number[]
heroid: number
accountid: string
team_slot: number
}[]
}[]
}
Expand Down
2 changes: 1 addition & 1 deletion packages/steam/src/steam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function hasSteamData(game?: DelayedGames | null) {

function sortPlayersBySlot(game: DelayedGames) {
for (const team of game.teams) {
team.players = team.players.sort((a, b) => a.team_slot - b.team_slot)
team.players.sort((a, b) => a.team_slot - b.team_slot)
}
}

Expand Down

0 comments on commit 146808a

Please sign in to comment.