Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Revert regions rendering due to bad data.

Mike Caoc22fefaa2db2
diff --git a/src/components/metrics/RegionsTable.js b/src/components/metrics/RegionsTable.js
index cafe9300a..2e260e41d 100644
--- a/src/components/metrics/RegionsTable.js
+++ b/src/components/metrics/RegionsTable.js
@@ -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 }) => {