From 50787df1d03f9607a36485121bdade120009b8fa Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 10 Sep 2024 07:37:30 +0200 Subject: [PATCH] Fix invalid vote counts on single choice polls on certain MastoAPI implementations --- src/components/poll.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/poll.jsx b/src/components/poll.jsx index 7a8cfe7b..92b57a1d 100644 --- a/src/components/poll.jsx +++ b/src/components/poll.jsx @@ -49,7 +49,7 @@ export default function Poll({ // }; // }, [expired, expiresAtDate]); - const pollVotesCount = votersCount || votesCount; + const pollVotesCount = multiple ? votersCount : votesCount; let roundPrecision = 0; if (pollVotesCount <= 1000) {