From 2842a5f383e522746a3b584ccf007c726ef63cb0 Mon Sep 17 00:00:00 2001 From: Zaidhaan Date: Wed, 1 Mar 2023 05:44:15 +0800 Subject: [PATCH] fix: avoid bar width division by zero (#1826) --- components/status/StatusPoll.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/status/StatusPoll.vue b/components/status/StatusPoll.vue index e59e72be..b90c77ad 100644 --- a/components/status/StatusPoll.vue +++ b/components/status/StatusPoll.vue @@ -57,7 +57,7 @@ const votersCount = $computed(() => poll.votersCount ?? poll.votesCount ?? 0)
@@ -67,7 +67,7 @@ const votersCount = $computed(() => poll.votersCount ?? poll.votesCount ?? 0) {{ formatPercentage(votersCount > 0 ? (option.votesCount || 0) / votersCount : 0) }}
-
+