Skip to content

Commit

Permalink
AHHH
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Jun 17, 2024
1 parent 12cde3f commit 943faef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReplayBrowser/Pages/Shared/CompactProfileDisplay.razor
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
if (data.characters.length == 0) {
fields.push("No character data available");
} else {
let mostAntagCharacter = data.characters.sort((a, b) => b.antagRoundsPlayed - a.antagRoundsPlayed)[0];
fields.push("Most antag rounds played: " + mostAntagCharacter.characterName + " (" + mostAntagCharacter.antagRoundsPlayed + " rounds)");
let mostCharacter = data.characters.sort((a, b) => b.roundsPlayed - a.roundsPlayed)[0];
fields.push("Most played character: " + mostCharacter.characterName + " (" + mostCharacter.roundsPlayed + " rounds)");
}
if (data.jobCount.length == 0) {
fields.push("No job data available");
Expand Down

0 comments on commit 943faef

Please sign in to comment.