Ensure poll.voters_count doesn't fallback to poll.votes when it's 0
This commit is contained in:
parent
13ff99881b
commit
01275fbac0
2 changed files with 2 additions and 1 deletions
|
@ -58,7 +58,7 @@
|
|||
{{ $t('polls.vote') }}
|
||||
</button>
|
||||
<div class="total">
|
||||
<template v-if="poll.voters_count">
|
||||
<template v-if="typeof poll.voters_count === 'number'">
|
||||
{{ $tc("polls.people_voted_count", poll.voters_count, { count: poll.voters_count }) }} ·
|
||||
</template>
|
||||
<template v-else>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue