mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -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 = [];
|
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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue