mirror of
https://github.com/fosrl/pangolin.git
synced 2026-10-13 08:09:04 +02:00
Merge pull request #3602 from shleeable/patch-16
Fix TypeError: ensures more than 1 parts[] exists in signup page
This commit is contained in:
@@ -44,7 +44,7 @@ export default async function Page(props: {
|
|||||||
let inviteToken;
|
let inviteToken;
|
||||||
if (searchParams.redirect && isInvite) {
|
if (searchParams.redirect && isInvite) {
|
||||||
const parts = searchParams.redirect.split("token=");
|
const parts = searchParams.redirect.split("token=");
|
||||||
if (parts.length) {
|
if (parts.length > 1) {
|
||||||
const token = parts[1];
|
const token = parts[1];
|
||||||
const tokenParts = token.split("-");
|
const tokenParts = token.split("-");
|
||||||
if (tokenParts.length === 2) {
|
if (tokenParts.length === 2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user