fix: display email instead of id (#2202)

Co-authored-by: Matti Nannt <mail@matthiasnannt.com>
This commit is contained in:
Dhruwang Jariwala
2024-03-13 14:46:57 +05:30
committed by GitHub
parent 65a152e518
commit 09cb61ae1e

View File

@@ -1,5 +1,5 @@
import { TPerson } from "@formbricks/types/people";
export const getPersonIdentifier = (person: TPerson): string | number | null => {
return person?.userId || person?.attributes?.userId || person?.attributes?.email || person?.id || null;
return person.attributes.email || person.userId;
};