Fix last update
authorBenjamin Auder <benjamin.auder@somewhere>
Mon, 26 Apr 2021 17:53:18 +0000 (19:53 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Mon, 26 Apr 2021 17:53:18 +0000 (19:53 +0200)
client/src/store.js

index 40e0ac2..d57a7f5 100644 (file)
@@ -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