Hide the expiry date indication if the poll never expires

Signed-off-by: SyoBoN <syobon@syobon.net>
This commit is contained in:
SyoBoN 2024-01-26 17:43:43 +09:00
commit 062323c0d5
No known key found for this signature in database
GPG key ID: 38DBCFD11F41319A
2 changed files with 7 additions and 4 deletions

View file

@ -38,7 +38,7 @@ export default {
return (this.poll && this.poll.options) || []
},
expiresAt () {
return (this.poll && this.poll.expires_at) || 0
return (this.poll && this.poll.expires_at) || null
},
expired () {
return (this.poll && this.poll.expired) || false