Skip to content

Commit

Permalink
fix: always distinguish Dugtrio normal form
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Nov 19, 2024
1 parent cd29b40 commit 91f105a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/hooks/useTranslateById.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,10 @@ export function useTranslateById(options = {}) {
const [pokemon, form] = id.split('-', 2)
const pokemonName = i18n.t(`poke_${pokemon}`)
const possibleForm = i18n.t(`form_${form}`)
const hideForm = quest
? form === undefined
: formsToIgnore.current.has(possibleForm)
const hideForm =
quest || pokemon === '51' // Dugtrio (unset) != Dugtrio (normal)
? form === undefined
: formsToIgnore.current.has(possibleForm)
return hideForm
? pokemonName
: `${pokemonName}${newLine ? '\n' : ' '}(${possibleForm})`
Expand Down

0 comments on commit 91f105a

Please sign in to comment.