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

* fix: type error causing broken build

* fix typings

* fixup! fix typings

* fixup! fixup! fix typings

---------

Co-authored-by: Morgan Vernay <[email protected]>
This commit is contained in:
Rajiv SahalandMorgan Vernay authored and GitHub committed 2024-12-03 15:44:42 +00:00
1 parent 00689fda0a
commit 0cb955cc0b
2 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ export interface BookerProps {
teamMemberEmail?: string | null;
crmOwnerRecordType?: string | null;
crmAppSlug?: string | null;
areInstantMeetingParametersSet?: boolean;
areInstantMeetingParametersSet?: boolean | null;
userLocale?: string | null;
}
@@ -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