Skip to content

Commit

Permalink
fix: remove direct language reference
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyArt1 committed May 13, 2024
1 parent ed5b40d commit 606a2a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/[lang]/register/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export function Form({ cedula }: Props) {
);

if (item) {
return router.push(`/en/verification?flow=${item?.flow.id}`);
return router.push(`/verification?flow=${item?.flow.id}`);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/[lang]/verification/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function Form({ flow, returnTo, code }: Props) {
// Status code 410 means the request has expired - so let's load a fresh flow!
case 403:
// Status code 403 implies some other issue (e.g. CSRF) - let's reload!
return router.push('/en/verification');
return router.push('/verification');
}

throw new Error(err);
Expand Down

0 comments on commit 606a2a8

Please sign in to comment.