fix count of poll voters
Some checks are pending
ci/woodpecker/push/woodpecker Pipeline is pending

This commit is contained in:
FloatingGhost 2022-11-08 13:50:04 +00:00
parent 2e895b6c02
commit 4e8ab0deeb

View file

@ -68,7 +68,7 @@ defp options_and_votes_count(options) do
end) end)
end end
defp voters_count(%{data: %{"voters" => [_ | _] = voters}}) do defp voters_count(%{data: %{"voters" => voters}}) when is_list(voters) do
length(voters) length(voters)
end end