1
0
mirror of https://github.com/kremalicious/umami.git synced 2024-12-22 09:13:37 +01:00

feature(CountriesTable): default nullish labels to 'Unknown'

This commit is contained in:
Alexander Klein 2021-02-19 09:56:40 +01:00
parent fb85d576a2
commit 14e1366fe4

View File

@ -10,7 +10,7 @@ export default function CountriesTable({ websiteId, onDataLoad, ...props }) {
const countryNames = useCountryNames(locale); const countryNames = useCountryNames(locale);
function renderLabel({ x }) { function renderLabel({ x }) {
return <div className={locale}>{countryNames[x]}</div>; return <div className={locale}>{countryNames[x] ?? 'Unknown'}</div>;
} }
return ( return (