diff --git a/app/assets/javascripts/discourse/components/badge-card.js.es6 b/app/assets/javascripts/discourse/components/badge-card.js.es6 index 7366d05ef80..72037d969f9 100644 --- a/app/assets/javascripts/discourse/components/badge-card.js.es6 +++ b/app/assets/javascripts/discourse/components/badge-card.js.es6 @@ -25,9 +25,11 @@ export default Ember.Component.extend({ @computed('count', 'badge.grant_count') displayCount(count, grantCount) { - const c = parseInt(count || grantCount || 0); - if (c > 1) { - return c; + if (count == null) { + return grantCount; + } + if (count > 1) { + return count; } },