Polls: Hide multiple options hint if already voted

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2022-06-29 23:05:26 +02:00
parent 68b0e3bf35
commit 60f6bff306
1 changed files with 2 additions and 2 deletions

View File

@ -67,13 +67,13 @@ const Poll: React.FC<IPoll> = ({ id, status }): JSX.Element | null => {
return ( return (
// eslint-disable-next-line jsx-a11y/no-static-element-interactions // eslint-disable-next-line jsx-a11y/no-static-element-interactions
<div onClick={e => e.stopPropagation()}> <div onClick={e => e.stopPropagation()}>
{poll.multiple && ( {!showResults && poll.multiple && (
<Text theme='muted' size='sm'> <Text theme='muted' size='sm'>
{intl.formatMessage(messages.multiple)} {intl.formatMessage(messages.multiple)}
</Text> </Text>
)} )}
<Stack space={4} className={classNames('mt-4')}> <Stack space={4} className='mt-4'>
<Stack space={2}> <Stack space={2}>
{poll.options.map((option, i) => ( {poll.options.map((option, i) => (
<PollOption <PollOption