Web UI: Allow removing a second poll choice

This commit is contained in:
Jeremy Kescher 2022-08-12 21:42:19 +02:00
parent 1c107575d8
commit f2fef712b3
No known key found for this signature in database
GPG key ID: 48DFE4BB15BA5940
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ class Option extends React.PureComponent {
</label>
<div className='poll__cancel'>
<IconButton disabled={index <= 1} title={intl.formatMessage(messages.remove_option)} icon='times' onClick={this.handleOptionRemove} />
<IconButton disabled={index < 1} title={intl.formatMessage(messages.remove_option)} icon='times' onClick={this.handleOptionRemove} />
</div>
</li>
);

View file

@ -102,7 +102,7 @@ class Option extends React.PureComponent {
</label>
<div className='poll__cancel'>
<IconButton disabled={index <= 1} title={intl.formatMessage(messages.remove_option)} icon='times' onClick={this.handleOptionRemove} />
<IconButton disabled={index < 1} title={intl.formatMessage(messages.remove_option)} icon='times' onClick={this.handleOptionRemove} />
</div>
</li>
);