fix: unskip confirm step if there are multiple location (#20051)

This commit is contained in:
Anik Dhabal Babu
2025-03-19 12:17:49 +00:00
committed by GitHub
parent 91d4f1c219
commit 7dab100382
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -171,7 +171,8 @@ const BookerComponent = ({
bookerState,
isInstantMeeting,
layout == BookerLayouts.WEEK_VIEW,
event?.data?.bookingFields
event?.data?.bookingFields,
event?.data?.locations
);
// Cloudflare Turnstile Captcha
@@ -12,7 +12,8 @@ const useSkipConfirmStep = (
bookerState: BookerState,
isInstantMeeting: boolean,
isWeekView: boolean,
bookingFields?: BookerEvent["bookingFields"]
bookingFields?: BookerEvent["bookingFields"],
locations?: BookerEvent["locations"]
) => {
const bookingFormValues = bookingForm.getValues();
@@ -21,7 +22,7 @@ const useSkipConfirmStep = (
useEffect(() => {
const checkSkipStep = async () => {
if (!bookingFields) {
if (!bookingFields || (locations && locations.length > 1)) {
setCanSkip(false);
return;
}