forked from YokaiRick/akkoma
fix count of poll voters
This commit is contained in:
parent
2e895b6c02
commit
4e8ab0deeb
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ defp options_and_votes_count(options) do
|
|||
end)
|
||||
end
|
||||
|
||||
defp voters_count(%{data: %{"voters" => [_ | _] = voters}}) do
|
||||
defp voters_count(%{data: %{"voters" => voters}}) when is_list(voters) do
|
||||
length(voters)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue