mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-24 16:58:47 +01:00
Fix invalid vote counts on single choice polls on certain MastoAPI implementations
This commit is contained in:
parent
44c8b64b66
commit
50787df1d0
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export default function Poll({
|
||||||
// };
|
// };
|
||||||
// }, [expired, expiresAtDate]);
|
// }, [expired, expiresAtDate]);
|
||||||
|
|
||||||
const pollVotesCount = votersCount || votesCount;
|
const pollVotesCount = multiple ? votersCount : votesCount;
|
||||||
let roundPrecision = 0;
|
let roundPrecision = 0;
|
||||||
|
|
||||||
if (pollVotesCount <= 1000) {
|
if (pollVotesCount <= 1000) {
|
||||||
|
|
Loading…
Reference in a new issue