diff --git a/changelog.d/non-expiring-polls-indication.fix b/changelog.d/non-expiring-polls-indication.fix new file mode 100644 index 00000000..7979cc13 --- /dev/null +++ b/changelog.d/non-expiring-polls-indication.fix @@ -0,0 +1 @@ +The expiry date indication won't be shown if the poll never expires 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 diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue index b3a74c49..f7e16665 100644 --- a/src/components/poll/poll.vue +++ b/src/components/poll/poll.vue @@ -75,13 +75,16 @@
+ +  ·  +
- +