well, fix confirmation modal after fixing a typo

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
next-virtuoso-proof
marcin mikołajczak 2 years ago
parent 2fbac4600c
commit 8be889734c

@ -236,7 +236,10 @@ export function submitCompose(routerHistory, force = false) {
if (!force && needsDescriptions(state)) {
dispatch(openModal('MISSING_DESCRIPTION', {
onContinue: () => dispatch(submitCompose(routerHistory, true)),
onContinue: () => {
dispatch(closeModal('MISSING_DESCRIPTION'));
dispatch(submitCompose(routerHistory, true));
},
}));
return;
}

@ -61,7 +61,7 @@ class ConfirmationModal extends React.PureComponent {
cancelText={<FormattedMessage id='confirmation_modal.cancel' defaultMessage='Cancel' />}
cancelAction={this.handleCancel}
secondaryText={secondary}
secondaryAction={this.handleSecondary}
secondaryAction={this.props.onSecondary && this.handleSecondary}
>
<p className='text-gray-600 dark:text-gray-300'>{message}</p>

Loading…
Cancel
Save