Skip to content

Commit

Permalink
Fix: 타입 플레이트에 옵셔널 체이닝
Browse files Browse the repository at this point in the history
  • Loading branch information
cdm1263 committed Jul 26, 2024
1 parent 9be4021 commit 8446199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/dex/PokemonDexElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const PokemonDexElement = ({ data }: PokemonDexElementProp) => {
{reverseObject(POKEMON_NAME)[data.name]}
</span>
<div className={styles.pokemon_type}>
{data.types.map((typeData: TypesType) => (
{data.types?.map((typeData: TypesType) => (
<Plate
key={typeData.type.name}
pokemonTypeProp={POKEMON_TYPES[typeData.type.name]}
Expand Down

0 comments on commit 8446199

Please sign in to comment.