Fix duplicate hidden entries in analytics (#3576)

This commit is contained in:
Prospector
2025-04-29 08:12:38 -07:00
committed by GitHub
parent 5e7444f115
commit 3d9be0cc3f
2 changed files with 10 additions and 9 deletions

View File

@@ -262,8 +262,9 @@ export const processAnalyticsByCountry = (category, projects, sortFn) => {
loadedProjectData.forEach((data) => {
Object.entries(data).forEach(([country, value]) => {
const current = countrySums.get(country) || 0;
countrySums.set(country, current + value);
const countryCode = country || "XX";
const current = countrySums.get(countryCode) || 0;
countrySums.set(countryCode, current + value);
});
});