From 6f4afaf84a1db643687949f6f90bfa0be68f15b0 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Fri, 19 Apr 2019 11:45:53 +0200 Subject: [PATCH] List only contrbutors with more than 0 kredits This is a bit of a problem because we list integer values, so if somebody has less than 1 Kredit than they would still show up. Not sure what is the best to do here. - but this should be good enough for now. --- app/controllers/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/index.js b/app/controllers/index.js index a6246a1..82e24e1 100644 --- a/app/controllers/index.js +++ b/app/controllers/index.js @@ -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'),