diff --git a/src/app/faculty/[id]/page.tsx b/src/app/faculty/[id]/page.tsx index 17b52a7..bfab023 100644 --- a/src/app/faculty/[id]/page.tsx +++ b/src/app/faculty/[id]/page.tsx @@ -18,18 +18,16 @@ type PageProps = { }; export default async function FacultyPage({ params }: PageProps) { - const { id } = await params; // ← Must await before accessing - const memberId = Number(id); + const { id } = await params; - // Guard against invalid IDs - if (!Number.isInteger(memberId)) { + if (!id) { notFound(); } let memberData; try { - memberData = await FacultyService.getFacultyById(memberId); + memberData = await FacultyService.getFacultyById(id); // pass string, not Number } catch (err) { console.error("Error loading faculty member:", err); notFound(); @@ -43,7 +41,7 @@ export default async function FacultyPage({ params }: PageProps) { <> diff --git a/src/components/faculty/TeamListing.tsx b/src/components/faculty/TeamListing.tsx index d041d39..21511d4 100644 --- a/src/components/faculty/TeamListing.tsx +++ b/src/components/faculty/TeamListing.tsx @@ -173,17 +173,7 @@ const TeamListing: React.FC = ({ )} - {/* Status badge for alumni */} - {(isRetired || isResigned) && ( - - - {isResigned ? 'Resigned' : 'Retired'} - - - )} +