Skip to content

Commit

Permalink
Fix MAT subtitle for categories
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Feb 20, 2023
1 parent 54471a9 commit 7ca542d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/aggregation/mat/ChartHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const SubtitleStr = ({ query }) => {
params.add(query.input)
}
if (query.category_code) {
params.add(getRowLabel(query.category_code, 'category_code'))
params.add(intl.formatMessage({id: `CategoryCode.${query.category_code}.Name`, defaultMessage: query.category_code}))
}
if (query.probe_asn) {
params.add(query.probe_asn)
Expand Down
3 changes: 1 addition & 2 deletions components/aggregation/mat/labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Box } from 'ooni-components'
import { testNames } from '../../test-info'
import { getCategoryCodesMap } from '../../utils/categoryCodes'
import { getLocalisedRegionName } from 'utils/i18nCountries'
import { FormattedMessage, useIntl } from 'react-intl'
import { FormattedMessage } from 'react-intl'

const InputRowLabel = ({ input }) => {
const truncatedInput = input
Expand Down Expand Up @@ -33,7 +33,6 @@ const blockingTypeLabels = {
}

const CategoryLabel = ({ code }) => {
const intl = useIntl()
return (
<FormattedMessage id={`CategoryCode.${code}.Name`} defaultMessage={code}/>
)
Expand Down

1 comment on commit 7ca542d

@vercel
Copy link

@vercel vercel bot commented on 7ca542d Feb 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

explorer – ./

explorer-one.vercel.app
explorer-ooni1.vercel.app
explorer-git-master-ooni1.vercel.app

Please sign in to comment.