Skip to content

Commit

Permalink
fix for showAttendees default value (calcom#7389)
Browse files Browse the repository at this point in the history
  • Loading branch information
alannnc authored Feb 24, 2023
1 parent 3b0126f commit 4edc973
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/features/bookings/lib/handleNewBooking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,8 @@ async function handler(req: NextApiRequest & { userId?: number | undefined }) {
hideCalendarNotes: eventType.hideCalendarNotes,
requiresConfirmation: requiresConfirmation ?? false,
eventTypeId: eventType.id,
seatsShowAttendees: !!eventType.seatsShowAttendees,
// if seats are not enabled we should default true
seatsShowAttendees: !!eventType.seatsPerTimeSlot ? eventType.seatsShowAttendees : true,
seatsPerTimeSlot: eventType.seatsPerTimeSlot,
};

Expand Down

0 comments on commit 4edc973

Please sign in to comment.