Fix issue with toggle in mobile

This commit is contained in:
Renato "Lond" Cerqueira 2018-10-01 19:14:36 +02:00
parent 5497b5af61
commit 9d6e005849

View File

@ -182,7 +182,7 @@ export default class FederationDropdown extends React.PureComponent {
handleModalActionClick = (e) => {
e.preventDefault();
const { value } = this.options[Boolean(e.currentTarget.getAttribute('data-index'))];
const { value } = this.options[e.currentTarget.getAttribute('data-index')];
this.props.onModalClose();
this.props.onChange(value);