fix: google calendar busy times (#11696)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
pull/11701/head^2
Carina Wollendorfer 2023-10-04 21:05:50 +02:00 committed by GitHub
parent 3e08c66888
commit 38d1b92226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

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