diff --git a/app/assets/javascripts/discourse/models/badge.js.es6 b/app/assets/javascripts/discourse/models/badge.js.es6 index 2b070a0ab97..6e3d852c78d 100644 --- a/app/assets/javascripts/discourse/models/badge.js.es6 +++ b/app/assets/javascripts/discourse/models/badge.js.es6 @@ -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; -