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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fixed region rendering.
Mike Cao0fdc8f792264
diff --git a/src/components/metrics/RegionsTable.js b/src/components/metrics/RegionsTable.jsindex 2e260e41d..cafe9300a 100644--- a/src/components/metrics/RegionsTable.js+++ b/src/components/metrics/RegionsTable.js@@ -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 }) => {