From a51c4bac64a01e69a6357c2f1c36dfddfff14229 Mon Sep 17 00:00:00 2001 From: 18alantom <2.alan.tom@gmail.com> Date: Tue, 18 Jan 2022 12:14:37 +0530 Subject: [PATCH] chore: remove redundant length check --- src/components/Charts/DonutChart.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Charts/DonutChart.vue b/src/components/Charts/DonutChart.vue index 6f01f048..76a570df 100644 --- a/src/components/Charts/DonutChart.vue +++ b/src/components/Charts/DonutChart.vue @@ -116,10 +116,7 @@ export default { return thetas.map((t, i) => [t.i, t.value, starts[i]]); }, hasNonZeroValues() { - return ( - this.thetasAndStarts.length > 0 && - this.thetasAndStarts.some((t) => this.sectors[t[0]].value !== 0) - ); + return this.thetasAndStarts.some((t) => this.sectors[t[0]].value !== 0); }, }, methods: {