better score check
This commit is contained in:
parent
a6d3dc6ed8
commit
40ce2c15a3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue