Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

Commit

Permalink
Merge pull request #291 from mozilla-services/290
Browse files Browse the repository at this point in the history
Profile only shows one country entry #290
  • Loading branch information
jaredlockhart committed May 4, 2016
2 parents eecf840 + 2474034 commit 959e0b5
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions leaderboard/static/js/leaderprofile.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ var LeaderProfile = React.createClass({
</tr>
</thead>
<tbody>
{this.state.profile.ranks.map((rank) => {
return (
<LeaderCountryRow
key={this.props.selection.profile + rank.country}
selection={this.props.selection}
rank={rank}
/>
);
})}
{this.state.profile.ranks.map((rank) =>
<LeaderCountryRow
key={this.props.selection.profile + (rank.country && rank.country.iso2)}
selection={this.props.selection}
rank={rank}
/>
)}
</tbody>
</table>
</div>
Expand Down

0 comments on commit 959e0b5

Please sign in to comment.