From 0de1752884ded5e9cb0fb481f3eaa01629889620 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Sat, 28 Nov 2020 18:14:58 -0600 Subject: [PATCH] Filter out unreported if there are none --- components/list-summary.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/list-summary.vue b/components/list-summary.vue index 7ef2ab5..da1e767 100644 --- a/components/list-summary.vue +++ b/components/list-summary.vue @@ -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 => {