diff --git a/apps/web/modules/event-types/views/event-types-listing-view.tsx b/apps/web/modules/event-types/views/event-types-listing-view.tsx index c57aebf234..029365fb17 100644 --- a/apps/web/modules/event-types/views/event-types-listing-view.tsx +++ b/apps/web/modules/event-types/views/event-types-listing-view.tsx @@ -144,15 +144,17 @@ const InfiniteTeamsTab: FC = (props) => { debouncedSearchTerm={debouncedSearchTerm} /> )} -
- -
+ {(query.data?.pages?.[0]?.eventTypes?.length ?? 0) > 0 && ( +
+ +
+ )} ); }; @@ -998,8 +1000,9 @@ const EventTypesPage = ({ userEventGroupsData, user }: Props) => { */ const redirectUrl = localStorage.getItem("onBoardingRedirect"); localStorage.removeItem("onBoardingRedirect"); - redirectUrl && router.push(redirectUrl); - // eslint-disable-next-line react-hooks/exhaustive-deps + if (redirectUrl) { + router.push(redirectUrl); + } }, []); useEffect(() => {