Fix poll meta not showing
This commit is contained in:
parent
4bf6b00b94
commit
b0808305ab
1 changed files with 36 additions and 37 deletions
|
@ -196,9 +196,8 @@ export default function Poll({
|
||||||
)}
|
)}
|
||||||
</form>
|
</form>
|
||||||
)}
|
)}
|
||||||
{!readOnly && (
|
|
||||||
<p class="poll-meta">
|
<p class="poll-meta">
|
||||||
{!expired && (
|
{!expired && !readOnly && (
|
||||||
<>
|
<>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
@ -224,16 +223,16 @@ export default function Poll({
|
||||||
{!!votersCount && votersCount !== votesCount && (
|
{!!votersCount && votersCount !== votesCount && (
|
||||||
<>
|
<>
|
||||||
{' '}
|
{' '}
|
||||||
•{' '}
|
• <span title={votersCount}>
|
||||||
<span title={votersCount}>{shortenNumber(votersCount)}</span>{' '}
|
{shortenNumber(votersCount)}
|
||||||
|
</span>{' '}
|
||||||
voter
|
voter
|
||||||
{votersCount === 1 ? '' : 's'}
|
{votersCount === 1 ? '' : 's'}
|
||||||
</>
|
</>
|
||||||
)}{' '}
|
)}{' '}
|
||||||
• {expired ? 'Ended' : 'Ending'}{' '}
|
• {expired ? 'Ended' : 'Ending'}{' '}
|
||||||
{!!expiresAtDate && <RelativeTime datetime={expiresAtDate} />}
|
{!!expiresAtDate && <RelativeTime datetime={expiresAtDate} />}
|
||||||
</p>
|
</p>{' '}
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue