From 590e17146c381a32d20e55122cc97b5b5881613e Mon Sep 17 00:00:00 2001 From: Alexandru Munteanu <alexandru.munt@gmail.com> Date: Fri, 3 Aug 2018 09:24:12 +0300 Subject: [PATCH] feat(submission-wizard): hide modal after submit --- packages/component-wizard/src/components/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/component-wizard/src/components/utils.js b/packages/component-wizard/src/components/utils.js index eb3f23178..27f14a882 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.') }) -- GitLab