From d243b534866be06a529de4bfdfafedd93704fc0c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 27 Sep 2020 18:02:57 -0500 Subject: [PATCH] PrivacyDropdown: clean up dispatch calls --- .../compose/containers/privacy_dropdown_container.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/soapbox/features/compose/containers/privacy_dropdown_container.js b/app/soapbox/features/compose/containers/privacy_dropdown_container.js index 0c3bbf83b..a90d54fa6 100644 --- a/app/soapbox/features/compose/containers/privacy_dropdown_container.js +++ b/app/soapbox/features/compose/containers/privacy_dropdown_container.js @@ -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')); + }, });