gdirk07 / PokemonChecker

Playing around with APIs
https://gdirk07.github.io/PokemonChecker/
0 stars 0 forks source link

'saveAbility' and 'savePokemon' write the full table to localStorage #90

Open jeremy-jtlo opened 2 years ago

jeremy-jtlo commented 2 years ago

Found this while I was working on the repository refactor.

When we call savePokemon:

localStorage.setItem("pokemonTable", JSON.stringify(this.pokemonTable));

And when we call saveAbility:

localStorage.setItem("abilityTable", JSON.stringify(this.abilityTable));

Whole tables are being saved. I'm working on the pokemon repository right now, if I find a working and testable solution I'll see if I can fix the ability repo as well.

gdirk07 commented 2 years ago

What's the status on this, want me to look into ability? @jeremy-jtlo