From 91f105ae011dc00187392de6bb6d2e6881308692 Mon Sep 17 00:00:00 2001 From: Mygod Date: Mon, 18 Nov 2024 20:40:25 -0800 Subject: [PATCH] fix: always distinguish Dugtrio normal form --- src/hooks/useTranslateById.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hooks/useTranslateById.js b/src/hooks/useTranslateById.js index 0a11ab4f0..ae0ff4c7b 100644 --- a/src/hooks/useTranslateById.js +++ b/src/hooks/useTranslateById.js @@ -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})`