mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01:00
Fixed region rendering.
This commit is contained in:
parent
befafaf1ee
commit
0fdc8f7922
@ -14,7 +14,9 @@ export function RegionsTable({ websiteId, ...props }) {
|
||||
const { basePath } = useRouter();
|
||||
|
||||
const renderLabel = x => {
|
||||
return regions[x] ? `${regions[x]}, ${countryNames[x.split('-')[0]]}` : x;
|
||||
const [country, ...codes] = x.split('-');
|
||||
const region = codes.join('-');
|
||||
return regions[region] ? `${regions[region]}, ${countryNames[country]}` : x;
|
||||
};
|
||||
|
||||
const renderLink = ({ x: code }) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user