Skip to content

Commit

Permalink
fix: log router replace
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNumericite committed Nov 22, 2024
1 parent ae5421c commit 78461cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions webapp/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
2 changes: 2 additions & 0 deletions webapp/src/pages/signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 78461cb

Please sign in to comment.