X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Futils%2FimportgameStorage.js;h=46a60bbb5ef45b4e2a8626c18944067aeacd7427;hp=e5ad6e22f8de741c4a3bff2f438cdb583f3034ba;hb=1ef65040168ab7d55ce921abc9d63644a937d689;hpb=73f8753ff5abf6c5819684920565e655b6858175 diff --git a/client/src/utils/importgameStorage.js b/client/src/utils/importgameStorage.js index e5ad6e22..46a60bbb 100644 --- a/client/src/utils/importgameStorage.js +++ b/client/src/utils/importgameStorage.js @@ -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); });