From: Benjamin Auder Date: Mon, 26 Apr 2021 17:53:18 +0000 (+0200) Subject: Fix last update X-Git-Url: https://git.auder.net/%7B%7B%20asset%28%27mixstore/images/scripts/current/git-favicon.png?a=commitdiff_plain;h=f4fce3375eb16a9136234f087415bacefaaca027;p=vchess.git Fix last update --- 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