diff --git a/front-end/game.js b/front-end/game.js index 4595e4ac9c75560c8dd43087f5cc867bc52087a2..bc09d90eb699a750b17d915becd6cd3f621e6db4 100644 --- a/front-end/game.js +++ b/front-end/game.js @@ -401,7 +401,7 @@ class ChessGame { this.gameOver = true; this.stopTimer(); - const winners = "white" ? "Les Blancs" : "Les Noirs"; + const winners = winnerColor === "white" ? "Les Blancs" : "Les Noirs"; this.showVictoryPopup(`${winners} gagnent par abandon !`); // Emit resignation to server