Files
calendar/packages/lib/getReplyToEmail.ts
T
2025-04-23 06:44:44 -07:00

9 lines
324 B
TypeScript

import type { CalendarEvent } from "@calcom/types/Calendar";
/**
* Returns the reply-to email address to use, with fallback to organizer's email
*/
export const getReplyToEmail = (calEvent: Pick<CalendarEvent, "customReplyToEmail" | "organizer">) => {
return calEvent.customReplyToEmail || calEvent.organizer.email;
};