X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;h=f8b6b24e098b1d4b48b1bfa3f853cf8a2e0acbec;hp=40e0ac25954ee418f847cf55a6b8a91af02b2dfa;hb=HEAD;hpb=a5200af9e8734f342d77727b83c1e19dee967500 diff --git a/client/src/store.js b/client/src/store.js index 40e0ac25..f8b6b24e 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -19,7 +19,7 @@ export const store = { "X-Requested-With": "XMLHttpRequest" }; fetch( - params.serverUrl + "/variants", + params.serverUrl + "/allvarslist", { method: "GET", headers: headers @@ -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