X-Git-Url: https://git.auder.net/js/rpsls.js?a=blobdiff_plain;f=client%2Fsrc%2Futils%2FcompgameStorage.js;h=4f5181effa3493469ce375fa2bc963975b2cae76;hb=cc25444a44669a7deb6c096c1195f320d17590a1;hp=655fd6bf8c69838d14c3032fe0d948066a9d0f88;hpb=d4605a02ac9edd27b3884537dfdc67945d950e06;p=vchess.git diff --git a/client/src/utils/compgameStorage.js b/client/src/utils/compgameStorage.js index 655fd6bf..4f5181ef 100644 --- a/client/src/utils/compgameStorage.js +++ b/client/src/utils/compgameStorage.js @@ -55,7 +55,7 @@ export const CompgameStorage = { .objectStore("compgames"); objectStore.get(gameId).onsuccess = function(event) { // Ignoring error silently: shouldn't happen now. TODO? - if (event.target.result) { + if (!!event.target.result) { const game = event.target.result; Object.keys(obj).forEach(k => { if (k == "move") game.moves.push(obj[k]);