Fixed empty array as truthy

pull/3040/head
zomars 2022-06-11 16:40:00 -06:00
parent 78d340786f
commit f3d49fe59e
1 changed files with 1 additions and 1 deletions

View File

@ -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);