Merge pull request #116 from 67P/bugfix/vetoed_in_type_graph

Don't include vetoed contributions in graph
This commit was merged in pull request #116.
This commit is contained in:
2019-05-10 15:58:12 +02:00
committed by GitHub
2 changed files with 16 additions and 14 deletions
@@ -20,9 +20,11 @@ export default Component.extend({
chartData: computed('contributions', function() {
let kredits = this.contributions
.filterBy('vetoed', false)
.map(c => {
return { kind: c.kind, amount: c.amount }
}).reduce(function (kinds, c) {
})
.reduce(function (kinds, c) {
if (c.kind in kinds) {
kinds[c.kind] = kinds[c.kind] + c.amount
} else {