Display contribution balances not token balances
We want to display the contribution balances (kredits earned) of the contributors not the token balances.
This commit is contained in:
@@ -116,6 +116,14 @@ export default Service.extend({
|
||||
})
|
||||
}),
|
||||
|
||||
totalKreditsEarned: computed(function() {
|
||||
return this.kredits.Contribution.functions.totalKreditsEarned(true)
|
||||
.then(total => {
|
||||
return total.toNumber();
|
||||
});
|
||||
}),
|
||||
|
||||
|
||||
loadInitialData() {
|
||||
return this.getContributors()
|
||||
.then(contributors => this.contributors.pushObjects(contributors))
|
||||
|
||||
Reference in New Issue
Block a user