mirror of
https://github.com/chase-manning/pokemon-js.git
synced 2025-08-11 05:09:12 +00:00
:bug fix bug with using stones
This commit is contained in:
parent
b6919d1ef6
commit
956e174faa
1 changed files with 10 additions and 5 deletions
|
@ -635,7 +635,8 @@ const useItemData = () => {
|
|||
|
||||
dispatch(
|
||||
showActionOnPokemon((index: number) => {
|
||||
const evolveToId = EVOLUTIONS[index];
|
||||
const pokemonId = pokemon[index].id;
|
||||
const evolveToId = EVOLUTIONS[pokemonId];
|
||||
if (!evolveToId) return;
|
||||
dispatch(
|
||||
showEvolution({
|
||||
|
@ -667,7 +668,8 @@ const useItemData = () => {
|
|||
|
||||
dispatch(
|
||||
showActionOnPokemon((index: number) => {
|
||||
const evolveToId = EVOLUTIONS[index];
|
||||
const pokemonId = pokemon[index].id;
|
||||
const evolveToId = EVOLUTIONS[pokemonId];
|
||||
if (!evolveToId) return;
|
||||
dispatch(
|
||||
showEvolution({
|
||||
|
@ -699,7 +701,8 @@ const useItemData = () => {
|
|||
|
||||
dispatch(
|
||||
showActionOnPokemon((index: number) => {
|
||||
const evolveToId = EVOLUTIONS[index];
|
||||
const pokemonId = pokemon[index].id;
|
||||
const evolveToId = EVOLUTIONS[pokemonId];
|
||||
if (!evolveToId) return;
|
||||
dispatch(
|
||||
showEvolution({
|
||||
|
@ -732,7 +735,8 @@ const useItemData = () => {
|
|||
|
||||
dispatch(
|
||||
showActionOnPokemon((index: number) => {
|
||||
const evolveToId = EVOLUTIONS[index];
|
||||
const pokemonId = pokemon[index].id;
|
||||
const evolveToId = EVOLUTIONS[pokemonId];
|
||||
if (!evolveToId) return;
|
||||
dispatch(
|
||||
showEvolution({
|
||||
|
@ -763,7 +767,8 @@ const useItemData = () => {
|
|||
|
||||
dispatch(
|
||||
showActionOnPokemon((index: number) => {
|
||||
const evolveToId = EVOLUTIONS[index];
|
||||
const pokemonId = pokemon[index].id;
|
||||
const evolveToId = EVOLUTIONS[pokemonId];
|
||||
if (!evolveToId) return;
|
||||
dispatch(
|
||||
showEvolution({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue