second review

This commit is contained in:
counterweight 2025-12-20 11:58:35 +01:00
parent 23049da55a
commit 976a880312
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
7 changed files with 105 additions and 65 deletions

View file

@ -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>
);
}