mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FIX: new user summary page was broken
This commit is contained in:
parent
0a95fee68f
commit
3ed703b856
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue