avoid error when currentPlayer is not set
This commit is contained in:
parent
1ca1b4ad7c
commit
6c74d77a97
|
@ -1879,6 +1879,10 @@
|
|||
myConfirm(
|
||||
_("Do you want to add score to active player?") + " " + totalScore,
|
||||
function () {
|
||||
if (currentPlayer === "") {
|
||||
return;
|
||||
}
|
||||
|
||||
const scoreCell = tablePlayers[currentPlayer].childNodes[2].childNodes[0];
|
||||
sendCmds([{
|
||||
cmd: "score",
|
||||
|
|
Loading…
Reference in New Issue