mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-10 07:11:53 +00:00
Fix for missing team
This commit is contained in:
parent
25a48e0de6
commit
bf7c19a928
2 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue