Skip to content
Snippets Groups Projects
Commit 09e377b2 authored by Sebastian Mihalache's avatar Sebastian Mihalache
Browse files

Merge branch 'develop' of gitlab.coko.foundation:xpub/xpub-faraday into develop

parents e8f973de 590e1714
No related branches found
No related tags found
1 merge request!21Sprint #16 features
...@@ -103,6 +103,7 @@ export const onSubmit = ( ...@@ -103,6 +103,7 @@ export const onSubmit = (
dispatch(autosaveRequest()) dispatch(autosaveRequest())
submitManuscript(collectionId, fragmentId) submitManuscript(collectionId, fragmentId)
.then(r => { .then(r => {
hideModal()
dispatch(autosaveSuccess()) dispatch(autosaveSuccess())
history.push('/confirmation-page', { history.push('/confirmation-page', {
customId, customId,
...@@ -111,6 +112,7 @@ export const onSubmit = ( ...@@ -111,6 +112,7 @@ export const onSubmit = (
}) })
}) })
.catch(e => { .catch(e => {
hideModal()
dispatch(autosaveFailure(e)) dispatch(autosaveFailure(e))
setModalError('Something went wrong.') setModalError('Something went wrong.')
}) })
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment