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 <morgan@cal.com>
This commit is contained in:
Rajiv Sahal
2024-12-03 15:44:42 +00:00
committed by GitHub
co-authored by Morgan Vernay
parent 00689fda0a
commit 0cb955cc0b
2 changed files with 8 additions and 5 deletions
+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