Url back remoto
This commit is contained in:
parent
97687897aa
commit
0f26ae732d
@ -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");
|
||||
|
@ -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/";
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user