From 0f26ae732d9dbcf96288a6d1a2cb4ab1d67b676b Mon Sep 17 00:00:00 2001 From: Araozu Date: Sat, 15 Oct 2022 12:06:25 -0500 Subject: [PATCH] Url back remoto --- src/Store.ts | 2 +- src/Views/MobileIndex.tsx | 10 +--------- 2 files changed, 2 insertions(+), 10 deletions(-) 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/"; } };