fix: title-for-team-events (#9828)

This commit is contained in:
Ujwal Kumar
2023-06-28 10:47:28 -04:00
committed by GitHub
parent a9f74b68f5
commit 6a975194bb
2 changed files with 4 additions and 2 deletions
@@ -23,6 +23,7 @@ export default function Type({ slug, user, booking, away, isBrandingHidden }: Pa
eventSlug={slug}
rescheduleUid={booking?.uid}
hideBranding={isBrandingHidden}
isTeamEvent
/>
<Booker
username={user}
@@ -7,13 +7,14 @@ interface BookerSeoProps {
eventSlug: string;
rescheduleUid: string | undefined;
hideBranding?: boolean;
isTeamEvent?: boolean;
}
export const BookerSeo = (props: BookerSeoProps) => {
const { eventSlug, username, rescheduleUid, hideBranding } = props;
const { eventSlug, username, rescheduleUid, hideBranding, isTeamEvent } = props;
const { t } = useLocale();
const { data: event } = trpc.viewer.public.event.useQuery(
{ username, eventSlug },
{ username, eventSlug, isTeamEvent },
{ refetchOnWindowFocus: false }
);