Update page.tsx

This commit is contained in:
Shlee
2026-08-16 22:14:55 +09:30
committed by GitHub
parent 048e4fc73c
commit dc62d2e908
+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) {