Fix for invalid steam ids

This commit is contained in:
Chris Blanchard 2015-08-18 11:33:44 +01:00
parent 9151212c78
commit b31ca31c2b

View file

@ -16,10 +16,17 @@
this.avatar = client.baseUrl + user['avatar'];
this.admin = user['admin'];
this.team = user['team'];
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)]],