diff --git a/src/components/Nav/Topics.tsx b/src/components/Nav/Topics.tsx index 93ede4d7..14750cf9 100644 --- a/src/components/Nav/Topics.tsx +++ b/src/components/Nav/Topics.tsx @@ -6,7 +6,8 @@ import { t } from '../../utils/intl' import { locale } from '../../stores/ui' export const NavTopics = (props: { topics: Topic[] }) => { - const tag = (t: Topic) => (/[ЁА-яё]/.test(t.title || '') && locale() !== 'ru' ? t.slug : t.title) + const tag = (topic: Topic) => + /[ЁА-яё]/.test(topic.title || '') && locale() !== 'ru' ? topic.slug : topic.title // TODO: something about subtopics return ( @@ -14,10 +15,10 @@ export const NavTopics = (props: { topics: Topic[] }) => {