fix cancel
authorLaurent Mazet <mazet@softndesign.org>
Thu, 19 Nov 2020 20:30:23 +0000 (21:30 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Thu, 19 Nov 2020 20:30:23 +0000 (21:30 +0100)
public/trivabble.js

index 95e55dfff70ae201e6a28e9036d4e3077612c917..af7196bdaf4b9e506432220eb8a6fdfb3526ed87 100644 (file)
             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) {