diff --git a/pages/[user].tsx b/pages/[user].tsx index e0dedc3693..dad96ec055 100644 --- a/pages/[user].tsx +++ b/pages/[user].tsx @@ -92,16 +92,23 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) => const eventTypesWithHidden = await prisma.eventType.findMany({ where: { - OR: [ + AND: [ { - userId: user.id, + teamId: null, }, { - users: { - some: { - id: user.id, + OR: [ + { + userId: user.id, }, - }, + { + users: { + some: { + id: user.id, + }, + }, + }, + ], }, ], },