From 40ce2c15a3b2dc32e7c524a4b6e1963d5946e15c Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 24 Nov 2020 13:26:52 +0100 Subject: [PATCH] better score check --- public/trivabble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2