Skip to content

Scheduling infrastructure for absolutely everyone.

fix: build failure for v4.7.15 (#17968)

Rajiv Sahal0cb955cc0b88
diff --git a/packages/features/bookings/Booker/types.ts b/packages/features/bookings/Booker/types.ts
index a467355cb13..7f2d3c41574 100644
--- a/packages/features/bookings/Booker/types.ts
+++ b/packages/features/bookings/Booker/types.ts
@@ -90,7 +90,7 @@ export interface BookerProps {
teamMemberEmail?: string | null;
crmOwnerRecordType?: string | null;
crmAppSlug?: string | null;
- areInstantMeetingParametersSet?: boolean;
+ areInstantMeetingParametersSet?: boolean | null;
userLocale?: string | null;
}
diff --git a/packages/platform/atoms/booker/BookerWebWrapper.tsx b/packages/platform/atoms/booker/BookerWebWrapper.tsx
index 03e0653104c..3983b048b44 100644
--- a/packages/platform/atoms/booker/BookerWebWrapper.tsx
+++ b/packages/platform/atoms/booker/BookerWebWrapper.tsx
@@ -181,10 +181,13 @@ export const BookerWebWrapper = (props: BookerWebWrapperAtomProps) => {
theme: event.data?.profile.theme,
});
- const areInstantMeetingParametersSet = !!event.data?.instantMeetingParameters
- ? searchParams &&
- event.data.instantMeetingParameters.every((param) => Array.from(searchParams.values()).includes(param))
- : true;
+ const areInstantMeetingParametersSet = Boolean(
+ event.data?.instantMeetingParameters &&
+ searchParams &&
+ event.data.instantMeetingParameters?.every?.((param) =>
+ Array.from(searchParams.values()).includes(param)
+ )
+ );
return (
<BookerComponent