aboutsummaryrefslogtreecommitdiff
path: root/src/components/poll/poll.js
diff options
context:
space:
mode:
authorSyoBoN <syobon@syobon.net>2024-01-26 17:43:43 +0900
committerSyoBoN <syobon@syobon.net>2024-01-26 17:57:00 +0900
commit062323c0d5459ffc3575e1fed33bda439ab630ce (patch)
treed02688406c8573e157f08418985e5a08a8bb19de /src/components/poll/poll.js
parent90427921336879bd7b5df742a7af41d85dceeee4 (diff)
Hide the expiry date indication if the poll never expires
Signed-off-by: SyoBoN <syobon@syobon.net>
Diffstat (limited to 'src/components/poll/poll.js')
-rw-r--r--src/components/poll/poll.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/poll/poll.js b/src/components/poll/poll.js
index f6001f56..9ce0e29e 100644
--- a/src/components/poll/poll.js
+++ b/src/components/poll/poll.js
@@ -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