Show check(mate) indicators in moves list. No longer require the odd ?rid=... in...
[vchess.git] / client / src / utils / gameStorage.js
index ba18949..1298667 100644 (file)
@@ -111,8 +111,8 @@ export const GameStorage = {
     dbOperation((err,db) => {
       let objectStore = db.transaction("games").objectStore("games");
       objectStore.get(gameId).onsuccess = function(event) {
-        if (event.target.result)
-          callback(event.target.result);
+        // event.target.result is null if game not found
+        callback(event.target.result);
       };
     });
   },