Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ export const ParticipantInitiateForm = ({ project }: { project: Project }) => {
const [readyValues, setReadyValues] = useState<FormValues | null>(null);

const defaultName =
searchParams.get("participant_name") || searchParams.get("name") || "";
searchParams.get("participant_name") ||
searchParams.get("title") ||
"";
const defaultEmail =
searchParams.get("participant_email") || searchParams.get("email") || "";
searchParams.get("participant_email") || "";
const defaultTagsParam =
searchParams.get("tags") || searchParams.get("tag_id_list") || "";
searchParams.get("tags") || "";

const defaultTagIdList = useMemo(() => {
if (!defaultTagsParam) return [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ const ParticipantOnboardingCards = ({

const { language } = useLanguage();

// Tables/tags preselected via the QR URL (?tags= / ?tag_id_list=), resolved
// Tables/tags preselected via the QR URL (?tags=), resolved
// to labels so the funnel can show them and mark them as preselected.
const preselectedTags = useMemo(() => {
const raw = searchParams.get("tags") ?? searchParams.get("tag_id_list");
const raw = searchParams.get("tags");
if (!raw) return [] as string[];
const wanted = raw
.split(",")
Expand Down
Loading