diff --git a/app/assets/javascripts/discourse/routes/badges-show.js.es6 b/app/assets/javascripts/discourse/routes/badges-show.js.es6 index e5d1aae23cc..16e166c6b57 100644 --- a/app/assets/javascripts/discourse/routes/badges-show.js.es6 +++ b/app/assets/javascripts/discourse/routes/badges-show.js.es6 @@ -30,20 +30,9 @@ export default Discourse.Route.extend({ afterModel(model, transition) { const username = transition.queryParams && transition.queryParams.username; - const userBadgesGrant = UserBadge.findByBadgeId(model.get("id"), {username}).then(userBadges => { + return UserBadge.findByBadgeId(model.get("id"), {username}).then(userBadges => { this.userBadgesGrant = userBadges; }); - - const userBadgesAll = UserBadge.findByUsername(username).then(userBadges => { - this.userBadgesAll = userBadges; - }); - - const promises = { - userBadgesGrant, - userBadgesAll, - }; - - return Ember.RSVP.hash(promises); }, titleToken() {