Commented out minimumBookingNotice, needs fixing (#1297)

This commit is contained in:
Alex van Andel authored and GitHub committed 2021-12-12 00:09:34 +01:00
1 parent c359ebe85c
commit 8afcba23c8
1 file changed
+2 -1
+2 -1
View File
@@ -24,9 +24,10 @@ const getMinuteOffset = (date: Dayjs, step: number) => {
return Math.ceil(minuteOffset / step) * step; return Math.ceil(minuteOffset / step) * step;
}; };
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const getSlots = ({ inviteeDate, frequency, minimumBookingNotice, workingHours }: GetSlots) => { const getSlots = ({ inviteeDate, frequency, minimumBookingNotice, workingHours }: GetSlots) => {
// current date in invitee tz // current date in invitee tz
let startDate = dayjs(inviteeDate).add(minimumBookingNotice, "minute"); let startDate = dayjs(inviteeDate); // .add(minimumBookingNotice, "minute");
// checks if the start date is in the past // checks if the start date is in the past
if (startDate.isBefore(dayjs(), "day")) { if (startDate.isBefore(dayjs(), "day")) {
return []; return [];