PrivacyDropdown: clean up dispatch calls

This commit is contained in:
Alex Gleason
2020-09-27 18:02:57 -05:00
parent 136965acdd
commit d243b53486

View File

@ -17,7 +17,10 @@ const mapDispatchToProps = dispatch => ({
isUserTouching,
onModalOpen: props => dispatch(openModal('ACTIONS', props)),
onModalClose: () => (dispatch(closeModal()), dispatch(openModal('COMPOSE'))),
onModalClose: () => {
dispatch(closeModal());
dispatch(openModal('COMPOSE'));
},
});