From 6638691c9f16a7af86c0a7520ae310deed9cba08 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Mon, 6 May 2019 18:46:59 +0200 Subject: [PATCH] Remove vetoed amounts from unconfirmed balances --- app/services/kredits.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/kredits.js b/app/services/kredits.js index 7064819..fea5b88 100644 --- a/app/services/kredits.js +++ b/app/services/kredits.js @@ -46,7 +46,7 @@ export default Service.extend({ }), kreditsByContributor: computed('contributionsUnconfirmed.[]', 'contributors', function() { - const contributionsUnconfirmed = this.contributionsUnconfirmed; + const contributionsUnconfirmed = this.contributionsUnconfirmed.filterBy('vetoed', false); const contributionsGrouped = groupBy(contributionsUnconfirmed, 'contributorId'); const contributorsWithUnconfirmed = contributionsGrouped.map(c => c.value.toString()); const contributorsWithOnlyConfirmed = this.contributors.reject(c => contributorsWithUnconfirmed.includes(c.id))