Shorter JS syntax

This commit is contained in:
2019-04-24 09:47:43 +02:00
parent 2f4807cdda
commit de937aceee
+1 -3
View File
@@ -118,9 +118,7 @@ export default Service.extend({
totalKreditsEarned: computed(function() {
return this.kredits.Contribution.functions.totalKreditsEarned(true)
.then(total => {
return total.toNumber();
});
.then(total => total.toNumber());
}),