diff --git a/src/app/private/chapter-leader/users/MembersHomePage.tsx b/src/app/private/chapter-leader/users/MembersHomePage.tsx index 0a8256e9..78b2e4d1 100644 --- a/src/app/private/chapter-leader/users/MembersHomePage.tsx +++ b/src/app/private/chapter-leader/users/MembersHomePage.tsx @@ -39,7 +39,7 @@ const MembersHomePage = ({ members }: MembersHomePageProps) => { const displayMembers = (elem: User, index: number) => ( { - const session = await getServerSessionOrRedirect(); +interface Params { + params: { + userId: string; + }; +} + +const Page = async ({ params }: Params) => { + const { userId } = params; const user = await prisma.user.findUniqueOrThrow({ where: { - id: session.user?.id, + id: userId, }, include: { Chapter: { diff --git a/src/app/private/user/seniors/[seniorId]/page.tsx b/src/app/private/user/seniors/[seniorId]/page.tsx index 7029c5ad..b858eb2d 100644 --- a/src/app/private/user/seniors/[seniorId]/page.tsx +++ b/src/app/private/user/seniors/[seniorId]/page.tsx @@ -32,10 +32,13 @@ const Page = async ({ params }: PageProps) => {