diff --git a/src/components/PollCard.tsx b/src/components/PollCard.tsx index 7f1eba5..0bb025b 100644 --- a/src/components/PollCard.tsx +++ b/src/components/PollCard.tsx @@ -135,7 +135,7 @@ export function PollCard({ poll, theme, locale, profileId }: PollCardProps) { }} > {choice_detail.map((choice, index) => - is_end || choice_detail.some((choice) => choice.is_select) ? ( + (!!profileId && is_end) || choice_detail.some((choice) => choice.is_select) ? ( ) : ( @@ -154,7 +154,7 @@ export function PollCard({ poll, theme, locale, profileId }: PollCardProps) { }} > - {profileId || is_end ? ( + {profileId ? ( {t`${vote_count} vote${vote_count !== 1 ? 's' : ''}`} ยท {getPollTimeLeft(poll, locale)} diff --git a/src/helpers/getPollFrameButtons.tsx b/src/helpers/getPollFrameButtons.tsx index ea8764c..8f2dd85 100644 --- a/src/helpers/getPollFrameButtons.tsx +++ b/src/helpers/getPollFrameButtons.tsx @@ -45,14 +45,14 @@ export const getPollFrameButtons = ({ poll, queryData }: Parameters) => { ); - if (poll.is_end) { - return [getFireflyLinkButton()]; - } - if (!queryData.profileId) { return [getCheckButton(t`Vote Now`), getFireflyLinkButton()]; } + if (poll.is_end) { + return [getFireflyLinkButton()]; + } + if (votedList.length >= maxVoteCount) { return [getCheckButton(t`Refresh`), getFireflyLinkButton()]; }