X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fstore.js;fp=client%2Fsrc%2Fstore.js;h=fa363a38ab0eda7ca6a72438816e9fe6ce4a5793;hb=dd10eb93984e629c4ee5a07cd3b875fdb20f0460;hp=33d03121c8d02cfbca4758a766df946f0192210e;hpb=a0224b03c91dd83a6e133378b85591a1a64e427b;p=vchess.git diff --git a/client/src/store.js b/client/src/store.js index 33d03121..fa363a38 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -46,7 +46,6 @@ export const store = { name: localStorage.getItem("myname") || "", //"" for "anonymous" email: "", //unknown yet notify: false, //email notifications - newsRead: localStorage.getItem("newsRead") || 0, sid: mysid }; // Slow verification through the server: @@ -79,8 +78,6 @@ export const store = { localStorage.removeItem("myname"); this.state.user.email = json.email; this.state.user.notify = json.notify; - if (!!json.newsRead && json.newsRead > this.state.user.newsRead) - this.state.user.newsRead = json.newsRead; }); // Settings initialized with values from localStorage const getItemDefaultTrue = (item) => {