Revert regions rendering due to bad data.

This commit is contained in:
Mike Cao 2023-08-25 21:26:11 -07:00
parent 8e373f7444
commit c22fefaa2d

View File

@ -14,9 +14,7 @@ export function RegionsTable({ websiteId, ...props }) {
const { basePath } = useRouter();
const renderLabel = x => {
const [country, ...codes] = x.split('-');
const region = codes.join('-');
return regions[region] ? `${regions[region]}, ${countryNames[country]}` : x;
return regions[x] ? `${regions[x]}, ${countryNames[x.split('-')[0]]}` : x;
};
const renderLink = ({ x: code }) => {