better score check

This commit is contained in:
Laurent Mazet 2020-11-24 13:26:52 +01:00
parent a6d3dc6ed8
commit 40ce2c15a3
1 changed files with 1 additions and 1 deletions

View File

@ -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;