diff --git a/packages/component-wizard/src/components/utils.js b/packages/component-wizard/src/components/utils.js index eb3f2317884c860d5524a81a1e28fc7d9566fb1b..27f14a882079cbb52d613d6f26e4385bc87c0315 100644 --- a/packages/component-wizard/src/components/utils.js +++ b/packages/component-wizard/src/components/utils.js @@ -103,6 +103,7 @@ export const onSubmit = ( dispatch(autosaveRequest()) submitManuscript(collectionId, fragmentId) .then(r => { + hideModal() dispatch(autosaveSuccess()) history.push('/confirmation-page', { customId, @@ -111,6 +112,7 @@ export const onSubmit = ( }) }) .catch(e => { + hideModal() dispatch(autosaveFailure(e)) setModalError('Something went wrong.') })