diff --git a/app/javascript/mastodon/features/compose/components/advanced_options_dropdown.js b/app/javascript/mastodon/features/compose/components/advanced_options_dropdown.js index da2d37767..129f7803d 100644 --- a/app/javascript/mastodon/features/compose/components/advanced_options_dropdown.js +++ b/app/javascript/mastodon/features/compose/components/advanced_options_dropdown.js @@ -71,6 +71,8 @@ export default class AdvancedOptionsDropdown extends React.PureComponent { const options = [ { icon: 'wifi', shortText: messages.local_only_short, longText: messages.local_only_long, key: 'do_not_federate' }, ]; + + const anyEnabled = values.some((enabled) => enabled); const optionElems = options.map((option) => { const active = values.get(option.key) ? 'active' : ''; return ( @@ -86,11 +88,11 @@ export default class AdvancedOptionsDropdown extends React.PureComponent { ); }); - return