diff --git a/app/javascript/mastodon/features/compose/components/federation_dropdown.js b/app/javascript/mastodon/features/compose/components/federation_dropdown.js index 6271c14cc..571cbcb6b 100644 --- a/app/javascript/mastodon/features/compose/components/federation_dropdown.js +++ b/app/javascript/mastodon/features/compose/components/federation_dropdown.js @@ -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);