Hiyve Components - v1.0.0
    Preparing search index...
    • Get the vote count for a poll option.

      Parameters

      • option: PollOptionType

        The poll option

      • isAnonymous: boolean

        Whether the poll is anonymous

      Returns number

      The vote count for the option

      Uses voteCount for anonymous polls, votes.length for non-anonymous. This centralizes the logic for determining vote counts based on poll type.