Shorter JS syntax
This commit is contained in:
@@ -118,9 +118,7 @@ export default Service.extend({
|
|||||||
|
|
||||||
totalKreditsEarned: computed(function() {
|
totalKreditsEarned: computed(function() {
|
||||||
return this.kredits.Contribution.functions.totalKreditsEarned(true)
|
return this.kredits.Contribution.functions.totalKreditsEarned(true)
|
||||||
.then(total => {
|
.then(total => total.toNumber());
|
||||||
return total.toNumber();
|
|
||||||
});
|
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user