:bug fix bug with using stones

This commit is contained in:
Chase Manning 2023-11-29 13:28:29 +00:00
commit 956e174faa

View file

@ -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({