mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-24 19:48:23 -05:00
56d8c3f50f
Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
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 || "";
|
|
};
|