diff --git a/packages/features/bookings/Booker/utils/event.ts b/packages/features/bookings/Booker/utils/event.ts index a6ebd01a36f2a1..519861837f49f4 100644 --- a/packages/features/bookings/Booker/utils/event.ts +++ b/packages/features/bookings/Booker/utils/event.ts @@ -66,6 +66,8 @@ export const useScheduleForEvent = ({ const pathname = usePathname(); + const isTeam = !!event.data?.team?.parentId; + return useSchedule({ username: usernameFromStore ?? username, eventSlug: eventSlugFromStore ?? eventSlug, @@ -76,6 +78,6 @@ export const useScheduleForEvent = ({ rescheduleUid, month: monthFromStore ?? month, duration: durationFromStore ?? duration, - isTeamEvent: pathname.indexOf("/team/") !== -1, + isTeamEvent: pathname.indexOf("/team/") !== -1 || isTeam, }); };