return;
}
this.state.variants = json.variantArray
- .filter(v => v.name != "Eightpieces") //TODO: not ready yet
.sort((v1,v2) => v1.name.localeCompare(v2.name));
});
let mysid = localStorage.getItem("mysid");
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:
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) => {