fix(ui): do not show poll expiration if missing (#2176)

zio/stable
Joaquín Sánchez 2023-07-02 20:12:24 +02:00 committed by GitHub
parent d52755a153
commit 78b8b441ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ const votersCount = $computed(() => poll.votersCount ?? poll.votesCount ?? 0)
: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>
</CommonTooltip>
</div>