diff --git a/packages/pl-fe/src/features/ui/components/profile-stats.tsx b/packages/pl-fe/src/features/ui/components/profile-stats.tsx index 1d77ced20..05d8b24a2 100644 --- a/packages/pl-fe/src/features/ui/components/profile-stats.tsx +++ b/packages/pl-fe/src/features/ui/components/profile-stats.tsx @@ -1,6 +1,6 @@ import { Link } from '@tanstack/react-router'; import React from 'react'; -import { FormattedMessage } from 'react-intl'; +import { FormattedMessage, useIntl } from 'react-intl'; import HStack from 'pl-fe/components/ui/hstack'; import Text from 'pl-fe/components/ui/text'; @@ -16,6 +16,7 @@ interface IProfileStats { /** Display follower and following counts for an account. */ const ProfileStats: React.FC = ({ account, onClickHandler }) => { + const intl = useIntl(); const { demetricator } = useSettings(); if (!account) {