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