Skip to content

Commit 810ad0e

Browse files
fix: set event type description correctly in the confirmation mail (calcom#28827)
1 parent 88859e4 commit 810ad0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/trpc/server/routers/viewer/bookings/confirm.handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const confirmHandler = async ({ ctx, input }: ConfirmOptions) => {
233233
const evt: CalendarEvent = {
234234
type: booking?.eventType?.slug as string,
235235
title: booking.title,
236-
description: booking.description,
236+
description: booking.eventType?.description ?? null,
237237
bookerUrl,
238238
// TODO: Remove the usage of `bookingFields` in computing responses. We can do that by storing `label` with the response. Also, this would allow us to correctly show the label for a field even after the Event Type has been deleted.
239239
...getCalEventResponses({

0 commit comments

Comments
 (0)