second review
This commit is contained in:
parent
23049da55a
commit
976a880312
7 changed files with 105 additions and 65 deletions
|
|
@ -19,7 +19,8 @@ export default function SignupWithCodePage() {
|
|||
router.replace("/");
|
||||
} else {
|
||||
// Redirect to signup with code as query param
|
||||
router.replace(`/signup?code=${encodeURIComponent(code)}`);
|
||||
// Invite codes only contain [a-z0-9-] so no encoding needed
|
||||
router.replace(`/signup?code=${code}`);
|
||||
}
|
||||
}, [user, isLoading, code, router]);
|
||||
|
||||
|
|
@ -37,4 +38,3 @@ export default function SignupWithCodePage() {
|
|||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue