Merge pull request #3602 from shleeable/patch-16

Fix TypeError: ensures more than 1 parts[] exists in signup page
This commit is contained in:
Owen Schwartz
2026-10-12 14:53:14 -04:00
committed by GitHub
+1 -1
View File
@@ -44,7 +44,7 @@ export default async function Page(props: {
let inviteToken;
if (searchParams.redirect && isInvite) {
const parts = searchParams.redirect.split("token=");
if (parts.length) {
if (parts.length > 1) {
const token = parts[1];
const tokenParts = token.split("-");
if (tokenParts.length === 2) {