- if (this.st.user.id > 0)
- {
- ajax("/games", "GET", {uid: this.st.user.id}, (res) => {
- res.games.forEach((g) => g.type = this.classifyObject(g));
+ if (this.st.user.id > 0) {
+ ajax("/games", "GET", { uid: this.st.user.id }, res => {
+ res.games.forEach(g => (g.type = this.classifyObject(g)));