add more hmd names
All checks were successful
deploy / deploy (push) Successful in 30s

This commit is contained in:
Lee
2023-10-30 21:06:27 +00:00
parent 410dc1c52c
commit bd992ad0e5
2 changed files with 12 additions and 28 deletions

View File

@ -72,8 +72,7 @@ async function connectWebsocket() {
} = score;
const { maxScore, stars, id: leaderboardId } = leaderboard;
const hmdName =
Headsets.find((h) => h.id.includes(hmd))?.name || "Unknown";
const hmdName = Headsets[hmd] || "Unknown";
const countryId = normalizedRegionName(player.country) || "Unknown";
totalCountries[countryId] = (totalCountries[countryId] || 0) + 1;
totalHeadsets[hmdName] = (totalHeadsets[hmdName] || 0) + 1;