Fix invalid vote counts on single choice polls on certain MastoAPI implementations

This commit is contained in:
Stefano Pigozzi 2024-09-10 07:37:30 +02:00
parent 44c8b64b66
commit 50787df1d0
No known key found for this signature in database
GPG key ID: 5ADA3868646C3FC0

View file

@ -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) {