Skip to content

Commit

Permalink
Fix: types 배열에 옵셔널 체이닝
Browse files Browse the repository at this point in the history
  • Loading branch information
cdm1263 committed Jul 19, 2024
1 parent b36d735 commit e7c1781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hook/useFilteredPokemonData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
);
Expand Down

0 comments on commit e7c1781

Please sign in to comment.