mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-25 16:04:22 -05:00
FIX: For real this time :'(
This commit is contained in:
parent
4cca4f2f5b
commit
d493702a90
1 changed files with 3 additions and 3 deletions
|
@ -6,9 +6,9 @@ export default Ember.Component.extend({
|
||||||
|
|
||||||
@computed('count', 'badge.grant_count')
|
@computed('count', 'badge.grant_count')
|
||||||
displayCount(count, grantCount) {
|
displayCount(count, grantCount) {
|
||||||
const count = parseInt(count || grantCount || 0);
|
const c = parseInt(count || grantCount || 0);
|
||||||
if (count > 1) {
|
if (c > 1) {
|
||||||
return count;
|
return c;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue