Experimental game upload added
[vchess.git] / client / src / utils / importgameStorage.js
index e5ad6e2..46a60bb 100644 (file)
@@ -47,7 +47,7 @@ export const ImportgameStorage = {
       };
       transaction.onerror = function(err) {
         // Duplicate key error (most likely)
-        callback(err);
+        callback(err.target.error);
       };
       transaction.objectStore("importgames").add(game);
     });