Fix kredits balance handling #104

Merged
bumi merged 3 commits from feature/handle-kredits-balances into master 2019-04-19 13:44:36 +00:00
Showing only changes of commit 6f4afaf84a - Show all commits
+1 -1
View File
@@ -9,7 +9,7 @@ export default Controller.extend({
contributors: alias('kredits.contributors'),
contributorsWithKredits: filter('contributors', function(contributor) {
return contributor.get('balance') !== 0;
return contributor.get('balanceRaw').gt(0);
}),
contributorsSorting: Object.freeze(['balance:desc']),
contributorsSorted: sort('contributorsWithKredits', 'contributorsSorting'),