Fix poll meta not showing

This commit is contained in:
Lim Chee Aun 2023-07-23 16:57:20 +08:00
parent 4bf6b00b94
commit b0808305ab

View file

@ -196,9 +196,8 @@ export default function Poll({
)}
</form>
)}
{!readOnly && (
<p class="poll-meta">
{!expired && (
{!expired && !readOnly && (
<>
<button
type="button"
@ -224,16 +223,16 @@ export default function Poll({
{!!votersCount && votersCount !== votesCount && (
<>
{' '}
&bull;{' '}
<span title={votersCount}>{shortenNumber(votersCount)}</span>{' '}
&bull; <span title={votersCount}>
{shortenNumber(votersCount)}
</span>{' '}
voter
{votersCount === 1 ? '' : 's'}
</>
)}{' '}
&bull; {expired ? 'Ended' : 'Ending'}{' '}
{!!expiresAtDate && <RelativeTime datetime={expiresAtDate} />}
</p>
)}
</p>{' '}
</div>
);
}