X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;fp=client%2Fsrc%2Fstore.js;h=d57a7f55f7b47720331f9ca28334276c42a0e637;hp=40e0ac25954ee418f847cf55a6b8a91af02b2dfa;hb=f4fce3375eb16a9136234f087415bacefaaca027;hpb=a5200af9e8734f342d77727b83c1e19dee967500 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