fix: page redirect to invite-settings when url not contain invite_token

This commit is contained in:
NFish 2024-09-03 15:43:01 +08:00
parent db67e22a11
commit db7119ddcb

View File

@ -16,7 +16,7 @@ export default function CheckCode() {
const searchParams = useSearchParams()
const email = decodeURIComponent(searchParams.get('email') as string)
const token = decodeURIComponent(searchParams.get('token') as string)
const invite_token = decodeURIComponent(searchParams.get('invite_token') as string)
const invite_token = decodeURIComponent(searchParams.get('invite_token') || '')
const [code, setVerifyCode] = useState('')
const [loading, setIsLoading] = useState(false)