fix: google calendar busy times (#11696)

Co-authored-by: CarinaWolli <[email protected]>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2023-10-04 12:05:50 -07:00
1 parent 3e08c66888
commit 38d1b92226
1 file changed
+1
@@ -115,6 +115,7 @@ const BookerComponent = ({
columnViewExtraDays.current =
Math.abs(dayjs(selectedDate).diff(availableSlots[availableSlots.length - 2], "day")) + addonDays;
const prefetchNextMonth =
layout === BookerLayouts.COLUMN_VIEW &&
dayjs(date).month() !== dayjs(date).add(columnViewExtraDays.current, "day").month();
const monthCount =
dayjs(date).add(1, "month").month() !== dayjs(date).add(columnViewExtraDays.current, "day").month()