diff --git a/packages/core/getBusyTimes.ts b/packages/core/getBusyTimes.ts index 5f2e9706f2..01db8c29d8 100644 --- a/packages/core/getBusyTimes.ts +++ b/packages/core/getBusyTimes.ts @@ -33,7 +33,7 @@ export async function getBusyTimes(params: { }) .then((bookings) => bookings.map(({ startTime, endTime }) => ({ end: endTime, start: startTime }))); - if (credentials) { + if (credentials.length > 0) { const calendarBusyTimes = await getBusyCalendarTimes(credentials, startTime, endTime, selectedCalendars); console.log("calendarBusyTimes", calendarBusyTimes); busyTimes.push(...calendarBusyTimes);