From e80bd3fdf74142e177283f69427797d8632d731b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 12 Feb 2021 02:37:40 +0100 Subject: [PATCH] fix for winners and loosers computed --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index ace572c..dce3840 100644 --- a/index.php +++ b/index.php @@ -324,12 +324,12 @@ $players = $db->requestAll("SELECT * FROM players ORDER BY name"); }, winners: function() { return this.red_score > this.blue_score ? - this.redP1 + (this.redP2.length && this.redredP1P2 !== this.redP2 ? ' et ' + this.redP2 : ''): + this.redP1 + (this.redP2.length && this.redP1 !== this.redP2 ? ' et ' + this.redP2 : ''): this.blueP1 + (this.blueP2.length && this.blueP1 !== this.blueP2 ? ' et ' + this.blueP2 : ''); }, loosers: function() { return this.red_score < this.blue_score ? - this.redP1 + (this.redP2.length && this.redredP1P2 !== this.redP2 ? ' et ' + this.redP2 : ''): + this.redP1 + (this.redP2.length && this.redP1 !== this.redP2 ? ' et ' + this.redP2 : ''): this.blueP1 + (this.blueP2.length && this.blueP1 !== this.blueP2 ? ' et ' + this.blueP2 : ''); }, winnercolor: function() {