From: Laurent Mazet Date: Tue, 24 Nov 2020 12:26:52 +0000 (+0100) Subject: better score check X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=40ce2c15a3b2dc32e7c524a4b6e1963d5946e15c;p=trivabble.git better score check --- diff --git a/public/trivabble.js b/public/trivabble.js index 3ca0cfd..e25ae58 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1043,7 +1043,7 @@ if (Object.prototype.hasOwnProperty.call(player, "score")) { const scoreCell = getScoreCell(playerName); - if (scoreCell.textContent != player.score) { + if (parseInt(scoreCell.textContent) !== player.score) { currentTilePlayed = {}; } scoreCell.textContent = player.score;