From aa4666469ead046530ba5bfcac43854a17d10837 Mon Sep 17 00:00:00 2001 From: Tim Vahlbrock Date: Sat, 26 Oct 2024 22:11:45 +0200 Subject: [PATCH] Fix winner icon and votes text --- src/components/views/polls/PollOption.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/views/polls/PollOption.tsx b/src/components/views/polls/PollOption.tsx index 0c624eac9b0..45c06cfbec2 100644 --- a/src/components/views/polls/PollOption.tsx +++ b/src/components/views/polls/PollOption.tsx @@ -27,7 +27,7 @@ type PollOptionContentProps = { isWinner?: boolean; }; const PollOptionContent: React.FC = ({ isWinner, answer, votes, displayVoteCount }) => { - const votesText = displayVoteCount ? : ""; + const votesText = displayVoteCount ? _t("timeline|m.poll|count_of_votes", { count: votes.length }) : ""; const room = useContext(RoomContext).room!; const members = useRoomMembers(room); @@ -35,7 +35,6 @@ const PollOptionContent: React.FC = ({ isWinner, answer,
{answer.text}
- {isWinner && }
{displayVoteCount && members.length <= MAXIMUM_MEMBERS_FOR_FACE_PILE @@ -46,7 +45,10 @@ const PollOptionContent: React.FC = ({ isWinner, answer, style={{ marginRight: "10px" }} /> } - {votesText} + + {isWinner && } + {votesText} +