mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-17 15:51:51 +03:00
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:
commit
2b4dbdfed5
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…
Add table
Reference in a new issue