mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-24 06:28:49 -05:00
50407498ec
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com> Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com>
10 lines
310 B
TypeScript
10 lines
310 B
TypeScript
import { TAttributes } from "@formbricks/types/attributes";
|
|
import { TResponsePerson } from "@formbricks/types/responses";
|
|
|
|
export const getPersonIdentifier = (
|
|
person: TResponsePerson | null,
|
|
personAttributes: TAttributes | null
|
|
): string => {
|
|
return personAttributes?.email || person?.userId || "";
|
|
};
|