fix: hide slot unavailable message for instant meetings (#20002)

* fix: hide slot unavailable message for instant meetings

* fix:
This commit is contained in:
Udit Takkar
2025-03-13 07:22:02 +00:00
committed by GitHub
parent f19750cfaf
commit f335cc4269
+2 -1
View File
@@ -131,6 +131,7 @@ const BookerComponent = ({
const timeslotsRef = useRef<HTMLDivElement>(null);
const isQuickAvailabilityCheckFeatureEnabled = useIsQuickAvailabilityCheckFeatureEnabled();
const StickyOnDesktop = isMobile ? "div" : StickyBox;
const { bookerFormErrorRef, key, formEmail, bookingForm, errors: formErrors } = bookerForm;
@@ -230,7 +231,7 @@ const BookerComponent = ({
onSubmit={() => (renderConfirmNotVerifyEmailButtonCond ? handleBookEvent() : handleVerifyEmail())}
errorRef={bookerFormErrorRef}
errors={{ ...formErrors, ...errors }}
isTimeslotUnavailable={unavailableTimeSlots.includes(selectedTimeslot || "")}
isTimeslotUnavailable={!isInstantMeeting && unavailableTimeSlots.includes(selectedTimeslot || "")}
loadingStates={loadingStates}
renderConfirmNotVerifyEmailButtonCond={renderConfirmNotVerifyEmailButtonCond}
bookingForm={bookingForm}