diff --git a/services/minespace-web/src/components/pages/Project/MajorMineApplicationPage.tsx b/services/minespace-web/src/components/pages/Project/MajorMineApplicationPage.tsx index 388482f2ab..4e236b3a14 100644 --- a/services/minespace-web/src/components/pages/Project/MajorMineApplicationPage.tsx +++ b/services/minespace-web/src/components/pages/Project/MajorMineApplicationPage.tsx @@ -40,6 +40,13 @@ export const MajorMineApplicationPage: FC = () => { const defaultCurrent = routeState?.current ?? 0; const [current, setCurrent] = useState(defaultCurrent); + useEffect(() => { + if (defaultCurrent !== current) { + // Make sure the current step is updated if the rootState changes + setCurrent(defaultCurrent); + } + }, [defaultCurrent]); + const [loaded, setLoaded] = useState(false); const [confirmedSubmission, setConfirmedSubmission] = useState(false); const majorMineApplicationGuid =