From 638d051cb37e82fe7ec4c28581fedf71edf9d4ee Mon Sep 17 00:00:00 2001 From: DICEPT Date: Fri, 19 Jul 2024 11:53:44 +0000 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, ), );