mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-05 16:19:55 -06:00
10 lines
338 B
TypeScript
10 lines
338 B
TypeScript
import { TContactAttributes } from "@formbricks/types/contact-attribute";
|
|
import { TResponseContact } from "@formbricks/types/responses";
|
|
|
|
export const getContactIdentifier = (
|
|
contact: TResponseContact | null,
|
|
contactAttributes: TContactAttributes | null
|
|
): string => {
|
|
return contactAttributes?.email || contact?.userId || "";
|
|
};
|