diff --git a/components/case/representation/representationComplete.js b/components/case/representation/representationComplete.js index 82340e70..0bfa4b12 100644 --- a/components/case/representation/representationComplete.js +++ b/components/case/representation/representationComplete.js @@ -91,7 +91,8 @@ const RepComplete = (props) => { : props.props.currentView.caseReference .representationType, }), - setRepresentationMessageSent(true)); + setRepresentationMessageSent(true)), + window.scrollTo({ top: 0, behavior: "smooth" }); }); return (
diff --git a/components/newappeal/complete.js b/components/newappeal/complete.js index 68c1e1f8..648980c2 100644 --- a/components/newappeal/complete.js +++ b/components/newappeal/complete.js @@ -65,6 +65,7 @@ let CompleteAppeal = (props) => { console.log("patching///////////////"); // //patchCase(incidentId); + window.scrollTo({ top: 0, behavior: "smooth" }); }, [ props.appealType.caseReference, props.props.form.appealForm.values,