Fixed empty array as truthy

This commit is contained in:
zomars 2022-06-11 16:40:00 -06:00
parent 78d340786f
commit f3d49fe59e

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