diff --git a/view/next-project/src/components/common/BureauLabel/BureauLabel.tsx b/view/next-project/src/components/common/BureauLabel/BureauLabel.tsx index 75f7ad9a8..c090a7d48 100644 --- a/view/next-project/src/components/common/BureauLabel/BureauLabel.tsx +++ b/view/next-project/src/components/common/BureauLabel/BureauLabel.tsx @@ -6,15 +6,16 @@ import { BureauLabelProps } from './BureauLabel.type'; import Label from '../Label'; const BureauLabel: React.FC = (props) => { - const { bureauID } = props; - const bureau = useMemo(() => { - const bureau = BUREAUS_WITH_EN.find((bureau) => bureau.id === bureauID); - return bureau; - }, [bureauID]); + const { bureauName } = props; + const bureauEn = useMemo(() => { + const bureau = BUREAUS_WITH_EN.find((bureau) => bureau.name === bureauName); + if (!bureau) return 'other'; + return bureau.name_en; + }, []); return ( -