Filter out unreported if there are none

This commit is contained in:
Sam Carlton 2020-11-28 18:14:58 -06:00
parent e47a0ac3db
commit 0de1752884

View file

@ -85,7 +85,15 @@ export default {
percent: this.unsupportedPercent,
verbiage: `are not working. `
},
]
].filter( percentage => {
const isZero = (percentage.percent === 0)
const isUnreported = (percentage.emoji === '🔶')
// Filter out
if (isUnreported && isZero) return false
return true
})
},
nonEmptyPercentages () {
return this.percentages.filter(percentage => {