PrivacyDropdown: clean up dispatch calls

This commit is contained in:
Alex Gleason 2020-09-27 18:02:57 -05:00
parent 136965acdd
commit d243b53486
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

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'));
},
});