fix: unskip confirm step if there are multiple location (#20051)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user