mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2025-02-18 09:51:26 +00:00
Fix for invalid steam ids
This commit is contained in:
parent
9151212c78
commit
b31ca31c2b
1 changed files with 11 additions and 4 deletions
|
@ -16,10 +16,17 @@
|
||||||
this.avatar = client.baseUrl + user['avatar'];
|
this.avatar = client.baseUrl + user['avatar'];
|
||||||
this.admin = user['admin'];
|
this.admin = user['admin'];
|
||||||
this.team = user['team'];
|
this.team = user['team'];
|
||||||
|
if (user['steam']) {
|
||||||
this.steam = {
|
this.steam = {
|
||||||
url: user['steam']['url'],
|
url: user['steam']['url'],
|
||||||
nickname: user['steam']['nickname']
|
nickname: user['steam']['nickname']
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
this.steam = {
|
||||||
|
url: null,
|
||||||
|
nickname: null
|
||||||
|
};
|
||||||
|
}
|
||||||
this.ability = {
|
this.ability = {
|
||||||
division: "Div " + (Math.floor(Math.random() * 4) + 1),
|
division: "Div " + (Math.floor(Math.random() * 4) + 1),
|
||||||
lifeforms: [["Lerk", "Onos", "Fade"][Math.floor(Math.random() * 3)]],
|
lifeforms: [["Lerk", "Onos", "Fade"][Math.floor(Math.random() * 3)]],
|
||||||
|
|
Loading…
Reference in a new issue