Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fix: availability for org team event (calcom#11611)
Browse files Browse the repository at this point in the history
Co-authored-by: CarinaWolli <[email protected]>
  • Loading branch information
CarinaWolli and CarinaWolli authored Sep 29, 2023
1 parent 685be16 commit 41b6377
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/features/bookings/Booker/utils/event.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export const useScheduleForEvent = ({

const pathname = usePathname();

const isTeam = !!event.data?.team?.parentId;

return useSchedule({
username: usernameFromStore ?? username,
eventSlug: eventSlugFromStore ?? eventSlug,
Expand All @@ -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,
});
};

0 comments on commit 41b6377

Please sign in to comment.