fix: availability for org team event (#11611)
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
This commit is contained in:
parent
685be1663e
commit
41b6377f29
|
@ -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,
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user