From f2925135985317ed8dcdaf5f1e6e8f4c7250c545 Mon Sep 17 00:00:00 2001
From: Miled Youssef <youssef.miled@etu.ec-lyon.fr>
Date: Wed, 2 Apr 2025 17:12:28 +0000
Subject: [PATCH] small fix

---
 front-end/game.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/front-end/game.js b/front-end/game.js
index 4595e4a..bc09d90 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
-- 
GitLab