Scheduling infrastructure for absolutely everyone.
Fixed empty array as truthy
zomarsf3d49fe59e4f
diff --git a/packages/core/getBusyTimes.ts b/packages/core/getBusyTimes.tsindex 5f2e9706f27..01db8c29d8e 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);