Fix for missing team

This commit is contained in:
Chris Blanchard 2015-08-08 16:27:17 +01:00
parent 25a48e0de6
commit bf7c19a928
2 changed files with 10 additions and 2 deletions

View file

@ -515,7 +515,11 @@ var Gatherers = React.createClass({
key={[lifeform, gatherer.id].join("-")}>{lifeform}</span>);
})
);
var team = (<span className="label label-primary">{gatherer.user.team.name}</span>);
var team;
if (gatherer.user.team) {
team = (<span className="label label-primary">{gatherer.user.team.name}</span>);
}
var action;

View file

@ -515,7 +515,11 @@ var Gatherers = React.createClass({displayName: "Gatherers",
key: [lifeform, gatherer.id].join("-")}, lifeform));
})
);
var team = (React.createElement("span", {className: "label label-primary"}, gatherer.user.team.name));
var team;
if (gatherer.user.team) {
team = (React.createElement("span", {className: "label label-primary"}, gatherer.user.team.name));
}
var action;