Fixed country names lookup.

This commit is contained in:
Mike Cao 2023-04-08 16:31:21 -07:00
parent 07c92ff9b5
commit 53b23420a4
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import FilterButtons from 'components/common/FilterButtons';
import MetricsTable from './MetricsTable'; import MetricsTable from './MetricsTable';
import useMessages from 'hooks/useMessages'; import useMessages from 'hooks/useMessages';
import usePageQuery from 'hooks/usePageQuery'; import usePageQuery from 'hooks/usePageQuery';
import { emptyFilter } from '../../lib/filters'; import { emptyFilter } from 'lib/filters';
export default function PagesTable({ websiteId, showFilters, ...props }) { export default function PagesTable({ websiteId, showFilters, ...props }) {
const { const {

View File

@ -12,7 +12,7 @@ export default function useCountryNames(locale) {
const { basePath } = useRouter(); const { basePath } = useRouter();
async function loadData(locale) { async function loadData(locale) {
const data = await get(`${basePath}/intl/country/${locale}.json`); const { data } = await get(`${basePath}/intl/country/${locale}.json`);
if (data) { if (data) {
countryNames[locale] = data; countryNames[locale] = data;