fix: availability for org team event (#11611)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
Carina WollendorferandCarinaWolli authored and GitHub committed 2023-09-29 17:56:24 +02:00
1 parent 685be1663e
commit 41b6377f29
1 file changed
+3 -1
@@ -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,
});
};