diff --git a/webapp/CHANGELOG.md b/webapp/CHANGELOG.md index d658d9ea..43ecafcf 100644 --- a/webapp/CHANGELOG.md +++ b/webapp/CHANGELOG.md @@ -1,9 +1,8 @@ ## [0.70.18](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.70.17...v0.70.18) (2024-11-22) - ### Bug Fixes -* remove router push from signup submit ([8c777e5](https://github.com/SocialGouv/carte-jeune-engage/commit/8c777e50da8b1c98c9d3c586e6ba64bfc9184e91)) +- remove router push from signup submit ([8c777e5](https://github.com/SocialGouv/carte-jeune-engage/commit/8c777e50da8b1c98c9d3c586e6ba64bfc9184e91)) ## [0.70.17](https://github.com/SocialGouv/carte-jeune-engage/compare/v0.70.16...v0.70.17) (2024-11-21) diff --git a/webapp/src/pages/signup.tsx b/webapp/src/pages/signup.tsx index 0546705c..4fc6bc3f 100644 --- a/webapp/src/pages/signup.tsx +++ b/webapp/src/pages/signup.tsx @@ -201,6 +201,8 @@ const SignupPage: React.FC = () => { JSON.parse(localStorage.getItem("cje-signup-form") as string) ?.signupStepNumber ?? 0; + console.log("replacing route : ", router.pathname); + if (!signupStep || typeof signupStep !== "string" || steps.length === 0) { if (router.isReady) { router.replace({