Skip to content

Commit

Permalink
Update server/chat-plugins/trivia/trivia.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Kris Johnson <11083252+KrisXV@users.noreply.github.com>
  • Loading branch information
dot-Comfey and KrisXV authored Dec 15, 2024
1 parent 2c03f6c commit 0b4be5b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/chat-plugins/trivia/trivia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -859,8 +859,8 @@ export class Trivia extends Rooms.RoomGame<TriviaPlayer> {
winner => this.room.tr` Second place: ${mapper(winner)} (${winner.player.points} points)`,
winner => this.room.tr`, third place: ${mapper(winner)} (${winner.player.points} points)`,
];
for (let i = 0; i < winners.length; i++) {
message += winnerParts[i](winners[i]);
for (const [i, winner] of winners.entries()) {
message += winnerParts[i](winner);
}
} else {
message = `No participants in the game of ` +
Expand Down

0 comments on commit 0b4be5b

Please sign in to comment.