Url back remoto

master
Araozu 2022-10-15 12:06:25 -05:00
parent 97687897aa
commit 0f26ae732d
2 changed files with 2 additions and 10 deletions

View File

@ -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");

View File

@ -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/";
}
};