mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-25 22:01:00 +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.admin = user['admin'];
|
||||
this.team = user['team'];
|
||||
this.steam = {
|
||||
url: user['steam']['url'],
|
||||
nickname: user['steam']['nickname']
|
||||
};
|
||||
if (user['steam']) {
|
||||
this.steam = {
|
||||
url: user['steam']['url'],
|
||||
nickname: user['steam']['nickname']
|
||||
};
|
||||
} else {
|
||||
this.steam = {
|
||||
url: null,
|
||||
nickname: null
|
||||
};
|
||||
}
|
||||
this.ability = {
|
||||
division: "Div " + (Math.floor(Math.random() * 4) + 1),
|
||||
lifeforms: [["Lerk", "Onos", "Fade"][Math.floor(Math.random() * 3)]],
|
||||
|
|
Loading…
Reference in a new issue