diff --git a/src/Store.ts b/src/Store.ts index 15c91e0..8ecfec5 100755 --- a/src/Store.ts +++ b/src/Store.ts @@ -29,7 +29,7 @@ export const horasDescanso = [ "15:40 - 15:50", "17:30 - 17:40", ]; -export const SERVER_PATH = "http://localhost:4000/sistema"; +export const SERVER_PATH = "https://matriculas.fly.dev/sistema"; const numImgGuardado = Number(localStorage.getItem("num-img") ?? "0"); const tamanoLetraGuardado = Number(/* localStorage.getItem("tamano-letra") ?? */ "16"); diff --git a/src/Views/MobileIndex.tsx b/src/Views/MobileIndex.tsx index aa459ec..610f7be 100644 --- a/src/Views/MobileIndex.tsx +++ b/src/Views/MobileIndex.tsx @@ -61,17 +61,9 @@ export function MobileIndex() { if (response === null) { setMsgErrorVisible(true); setTimeout(() => setMsgErrorVisible(false), 2500); - } else if (response.matriculas.length === 0) { + } else { localStorage.setItem("correo", email); window.location.href = "#/seleccion-cursos/"; - } else if (response.matriculas.length > 0) { - localStorage.setItem("correo", email); - batch(() => { - for (const id_lab of response.matriculas) { - setGruposSeleccionados(id_lab, true); - } - }); - window.location.href = "#/ver-matricula/"; } };