fix(ui): do not show poll expiration if missing (#2176)
This commit is contained in:
parent
d52755a153
commit
78b8b441ba
|
@ -77,7 +77,7 @@ const votersCount = $computed(() => poll.votersCount ?? poll.votesCount ?? 0)
|
||||||
:count="poll.votesCount"
|
:count="poll.votesCount"
|
||||||
/>
|
/>
|
||||||
·
|
·
|
||||||
<CommonTooltip :content="expiredTimeFormatted" class="inline-block" placement="right">
|
<CommonTooltip v-if="poll.expiresAt" :content="expiredTimeFormatted" class="inline-block" placement="right">
|
||||||
<time :datetime="poll.expiresAt!">{{ $t(poll.expired ? 'status.poll.finished' : 'status.poll.ends', [expiredTimeAgo]) }}</time>
|
<time :datetime="poll.expiresAt!">{{ $t(poll.expired ? 'status.poll.finished' : 'status.poll.ends', [expiredTimeAgo]) }}</time>
|
||||||
</CommonTooltip>
|
</CommonTooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue