Skip to content

Commit

Permalink
fix: rockruff form name issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 6, 2024
1 parent 0f9f0f1 commit 188c63a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/popups/Gym.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ const DropdownOptions = ({
})
}

return options.map((option) => (
return options.filter(Boolean).map((option) => (
<MenuItem key={option.key || option.name} onClick={option.action} dense>
{typeof option.name === 'string' ? t(option.name) : option.name}
</MenuItem>
Expand Down Expand Up @@ -508,8 +508,8 @@ const RaidInfo = ({
return t(`costume_${costume}`, 'Unknown Costume')
}
if (form) {
const raidForm = pokemon[id].forms[form].name
if (raidForm === 'Normal') {
const raidForm = pokemon[id].forms[form]?.name
if (raidForm === 'Normal' || !raidForm) {
return ''
}
return `${raidForm} ${t('form')}`
Expand Down

0 comments on commit 188c63a

Please sign in to comment.