aboutsummaryrefslogtreecommitdiff
path: root/src/components/poll
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/poll')
-rw-r--r--src/components/poll/poll.vue2
-rw-r--r--src/components/poll/poll_form.vue1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/components/poll/poll.vue b/src/components/poll/poll.vue
index 0fc81b46..db8e33b3 100644
--- a/src/components/poll/poll.vue
+++ b/src/components/poll/poll.vue
@@ -60,7 +60,7 @@
</div>
<i18n :path="expired ? 'polls.expired' : 'polls.expires_in'">
<Timeago
- :time="this.expiresAt"
+ :time="expiresAt"
:auto-update="60"
:now-threshold="0"
/>
diff --git a/src/components/poll/poll_form.vue b/src/components/poll/poll_form.vue
index 2bd3d058..d53f3837 100644
--- a/src/components/poll/poll_form.vue
+++ b/src/components/poll/poll_form.vue
@@ -77,6 +77,7 @@
>
<option
v-for="unit in expiryUnits"
+ :key="unit"
:value="unit"
>
{{ $t(`time.${unit}_short`, ['']) }}