projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a5200af
)
Fix last update
author
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 26 Apr 2021 17:53:18 +0000
(19:53 +0200)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 26 Apr 2021 17:53:18 +0000
(19:53 +0200)
client/src/store.js
patch
|
blob
|
blame
|
history
diff --git
a/client/src/store.js
b/client/src/store.js
index
40e0ac2
..
d57a7f5
100644
(file)
--- 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