FIX: new user summary page was broken

This commit is contained in:
Arpit Jalan 2016-01-26 03:02:16 +05:30
parent 0a95fee68f
commit 3ed703b856

View file

@ -163,7 +163,7 @@ Badge.reopenClass({
let badges = [];
if ("badge" in json) {
badges = [json.badge];
} else {
} else if (json.badges) {
badges = json.badges;
}
badges = badges.map(function(badgeJson) {
@ -211,4 +211,3 @@ Badge.reopenClass({
});
export default Badge;