Skip to content

Commit

Permalink
feat: hide time left when has no profile
Browse files Browse the repository at this point in the history
  • Loading branch information
dudu0506 committed Jun 21, 2024
1 parent ec2ed2b commit 162ba05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/PollCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ export function PollCard({ poll, theme, locale, profileId }: PollCardProps) {
}}
>
<span>
{t`${vote_count} vote${vote_count !== 1 ? 's' : ''}`} · {getPollTimeLeft(poll, locale)}
{profileId ? (
<span>{t`${vote_count} vote${vote_count !== 1 ? 's' : ''}`} · {getPollTimeLeft(poll, locale)}</span>
) : null}
</span>
<span>{t`via Firefly`}</span>
</div>
Expand Down

0 comments on commit 162ba05

Please sign in to comment.