From 3fdb65ea60bb080e33618abb68ecbbd29b4da2e2 Mon Sep 17 00:00:00 2001 From: Toyu09 <166454195+Toyu09@users.noreply.github.com> Date: Sat, 21 Nov 2026 23:43:58 -0500 Subject: [PATCH] cambio en la selecion de programas para el formulario --- .../project-program-requirements.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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}