X-Git-Url: https://git.auder.net/images/pieces/current/gitweb.js?a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;h=d57a7f55f7b47720331f9ca28334276c42a0e637;hb=32266282863eb3dad39ef3b4c1972d1ae1f20504;hp=40e0ac25954ee418f847cf55a6b8a91af02b2dfa;hpb=a5200af9e8734f342d77727b83c1e19dee967500;p=vchess.git diff --git a/client/src/store.js b/client/src/store.js index 40e0ac25..d57a7f55 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -42,7 +42,7 @@ export const store = { } // Quick user setup using local storage: this.state.user = { - id: localStorage.getItem("myid") || 0, + id: parseInt(localStorage.getItem("myid") || "0", 10), name: localStorage.getItem("myname") || "", //"" for "anonymous" email: "", //unknown yet notify: false, //email notifications