1
0
mirror of https://github.com/funamitech/mastodon synced 2024-11-30 07:49:04 +09:00

Fix incorrect and duplicate onConfirm callback

This commit is contained in:
Thibaut Girka 2018-12-21 17:54:47 +01:00 committed by ThibG
parent 6166751f9e
commit 0605c004a5

View File

@ -167,7 +167,6 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
confirm: intl.formatMessage(messages.missingDescriptionConfirm),
onConfirm: () => dispatch(submitCompose(routerHistory)),
onDoNotAsk: () => dispatch(changeLocalSetting(['confirm_missing_media_description'], false)),
onConfirm: () => dispatch(submitCompose()),
}));
},
onSubmit(routerHistory) {