diff --git a/app/assets/javascripts/discourse/controllers/preferences/badge-title.js.es6 b/app/assets/javascripts/discourse/controllers/preferences/badge-title.js.es6 index 85e3613d346..98be7cd39d3 100644 --- a/app/assets/javascripts/discourse/controllers/preferences/badge-title.js.es6 +++ b/app/assets/javascripts/discourse/controllers/preferences/badge-title.js.es6 @@ -19,7 +19,9 @@ export default Ember.ArrayController.extend({ }.property('saving'), selectableUserBadges: function() { - var items = this.get('model').filterBy('badge.allow_title', true); + var items = new Array(); + this.get('model').filterBy('badge.allow_title', true).forEach(function(item, index, arr) { + if(!items.findBy('badge.name', item.badge.name)) items.push(item); }); items.unshiftObject(Em.Object.create({ badge: Discourse.Badge.create({name: I18n.t('badges.no_title')}) }));