Skip to content

Commit

Permalink
rf: use id instead of order for pokemon dexId
Browse files Browse the repository at this point in the history
  • Loading branch information
felixtanhm committed May 8, 2024
1 parent b20c0b7 commit b3a5760
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ async function main() {
})
);
}

expandList.forEach(async (item) => {
const { newPokemon, newPokeDetails } = processPokeData(item);
const detailsRef = await createPokeDetails(newPokeDetails);
Expand All @@ -61,7 +60,7 @@ async function main() {
function processPokeData(data) {
const newPokemon = {
name: data.name,
dexId: data.order,
dexId: data.id,
avatar: data.sprites.front_default,
types: data.types.map((typeObj) => {
return typeObj.type.name;
Expand Down

0 comments on commit b3a5760

Please sign in to comment.