diff --git a/hub-frontend/app/components/project-program-requirements.tsx b/hub-frontend/app/components/project-program-requirements.tsx index 91a6a02..8307612 100644 --- a/hub-frontend/app/components/project-program-requirements.tsx +++ b/hub-frontend/app/components/project-program-requirements.tsx @@ -22,13 +22,10 @@ type ProgramRequirementItem = { readonly schoolName?: string; }; -const SUPPORTED_ENGINEERING_PROGRAMS = new Set([ - "ingenieria-ambiental", - "ingenieria-industrial", - "ingenieria-mecatronica", -]); - -function isSupportedEngineeringProgram(programId: string, programName: string): boolean { +function isEngineeringProgram( + programId: string, + programName: string, +): boolean { const normalize = (value: string) => value .normalize("NFD") @@ -37,8 +34,10 @@ function isSupportedEngineeringProgram(programId: string, programName: string): .replace(/[^a-z0-9]+/g, "-") .replace(/^-|-$/g, ""); - return SUPPORTED_ENGINEERING_PROGRAMS.has(normalize(programId)) || - SUPPORTED_ENGINEERING_PROGRAMS.has(normalize(programName)); + return ( + normalize(programId).startsWith("ingenieria-") || + normalize(programName).startsWith("ingenieria-") + ); } type ProjectProgramRequirementsProps = { @@ -154,7 +153,7 @@ export default function ProjectProgramRequirements({ {program.name} — {school.name}