Merge pull request #767 from Steffo99/feature/akkoma-vote-counts

Fix invalid vote counts on single choice polls on certain MastoAPI implementations
This commit is contained in:
Chee Aun 2024-09-10 17:21:52 +08:00 committed by GitHub
commit 2b4dbdfed5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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