diff --git a/src/hook/useFilteredPokemonData.ts b/src/hook/useFilteredPokemonData.ts index d18864d..666ce4a 100644 --- a/src/hook/useFilteredPokemonData.ts +++ b/src/hook/useFilteredPokemonData.ts @@ -27,7 +27,7 @@ const useFilteredPokemonData = () => { } const { types } = data; return selectedPlate.every((plate: string) => - types.some( + types?.some( (type: TypesType) => POKEMON_TYPES[type.type.name] === plate, ), );