From e7c1781eb0280635d6ea8076d0b35651bc8998f7 Mon Sep 17 00:00:00 2001 From: ChaDongmin Date: Fri, 19 Jul 2024 20:53:04 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20types=20=EB=B0=B0=EC=97=B4=EC=97=90=20?= =?UTF-8?q?=EC=98=B5=EC=85=94=EB=84=90=20=EC=B2=B4=EC=9D=B4=EB=8B=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hook/useFilteredPokemonData.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ), );