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:
co-authored by
Morgan Vernay
parent
00689fda0a
commit
0cb955cc0b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user