Revert regions rendering due to bad data.
This commit is contained in:
@@ -14,9 +14,7 @@ export function RegionsTable({ websiteId, ...props }) {
|
|||||||
const { basePath } = useRouter();
|
const { basePath } = useRouter();
|
||||||
|
|
||||||
const renderLabel = x => {
|
const renderLabel = x => {
|
||||||
const [country, ...codes] = x.split('-');
|
return regions[x] ? `${regions[x]}, ${countryNames[x.split('-')[0]]}` : x;
|
||||||
const region = codes.join('-');
|
|
||||||
return regions[region] ? `${regions[region]}, ${countryNames[country]}` : x;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderLink = ({ x: code }) => {
|
const renderLink = ({ x: code }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user