Skip to content

Commit

Permalink
Remove taller2usada logic
Browse files Browse the repository at this point in the history
Ahora parece que taller 2 se puede consumir multiples veces.
  • Loading branch information
RiedelNicolas committed Nov 29, 2023
1 parent a7db794 commit 4e25266
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ function App() {
useEffect(() => {
let _materias23 = [];
let _creditos = 0;
let taller2Usada = false;

const creditos86 = materias86.map(m => m.creditos).reduce((a, b) => a + b, 0);

Expand All @@ -124,17 +123,10 @@ function App() {
if (materia.equivalencias[i].materias.length === 0)
continue;

// it looks that una materia se puede usar mas de una vez chabon
// if (taller2Usada && materia.equivalencias[i].materias.includes("Taller de Programación II"))
// continue;

if (tieneMaterias(materia.equivalencias[i].materias)) {
_materias23.push(materia.nombre);
_creditos += materia.equivalencias[i].creditos;

if (materia.equivalencias[i].materias.includes("Taller de Programación II"))
taller2Usada = true;

break;
}
}
Expand Down

0 comments on commit 4e25266

Please sign in to comment.