From: Laurent Mazet Date: Thu, 19 Nov 2020 20:30:23 +0000 (+0100) Subject: fix cancel X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=540e5e89204743e25d7e0fd5780895abca5e42d7;p=trivabble.git fix cancel --- diff --git a/public/trivabble.js b/public/trivabble.js index 95e55df..af7196b 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1885,7 +1885,7 @@ format(_("{0} points will be added to the following player '{1}'"), totalScore, currentPlayer), Object.getOwnPropertyNames(tablePlayers), function (name) { - if (currentPlayer === "") { + if ((currentPlayer === "") || (currentPlayer === null)) { return; } if (currentPlayer !== name) {