Skip to content

Commit

Permalink
fix extraerTipos in pinta_lista.js
Browse files Browse the repository at this point in the history
  • Loading branch information
conancos committed Apr 16, 2024
1 parent 5d3b365 commit 97260db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pinta_lista.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export function pinta_lista(pokemonId) {
;

// separamos los tipos
let sacaLosTipos = tipos.map(tipo => {
let extraerTipos = tipos.map(tipo => {
let tipoId = document.getElementById(`${tipo}`).innerHTML;
return `<p class=${tipo}>${tipoId}</p>`
})
sacaLosTipos = sacaLosTipos.join('')
extraerTipos = extraerTipos.join('')
;

//Crea y da clase y el contenido, falta el appendChild() cuando termine de pintarlo.
Expand Down

0 comments on commit 97260db

Please sign in to comment.