diff --git a/components/vote/ParticipantsList.tsx b/components/vote/ParticipantsList.tsx index ebe12e8..6903f54 100644 --- a/components/vote/ParticipantsList.tsx +++ b/components/vote/ParticipantsList.tsx @@ -184,6 +184,8 @@ const ParticipantsList = ({ vote_id }: IParams) => { return count; }; + const hasVotes = participantsData.some((item) => item.votes_count > 0); + if (data) { if (!data?.data) { return ( @@ -288,7 +290,7 @@ const ParticipantsList = ({ vote_id }: IParams) => {