diff --git a/app/assets/javascripts/discourse/templates/badges/show.hbs b/app/assets/javascripts/discourse/templates/badges/show.hbs
index 16eacce849e..b834a798c6b 100644
--- a/app/assets/javascripts/discourse/templates/badges/show.hbs
+++ b/app/assets/javascripts/discourse/templates/badges/show.hbs
@@ -13,14 +13,12 @@
{{i18n 'badges.allow_title'}}
{{#if userBadges}}
- {{#each userBadges as |ub|}}
- {{#if model.allow_title}}
- {{d-button
- class='btn btn-small pad-left no-text'
- action='toggleSetUserTitle'
- icon='pencil'}}
- {{/if}}
- {{/each}}
+ {{#if model.allow_title}}
+ {{d-button
+ class='btn btn-small pad-left no-text'
+ action='toggleSetUserTitle'
+ icon='pencil'}}
+ {{/if}}
{{/if}}
{{/if}}