Merge branch 'dev' into analytics

This commit is contained in:
Mike Cao 2023-04-25 16:52:47 -07:00
commit 6f2c2d9aa8

View File

@ -69,8 +69,7 @@ export async function getLocation(ip, req) {
return { return {
country, country,
// Vercel documentation says they return only region, but that is not always the case subdivision1: region,
subdivision1: region.includes('-') ? region : `${country}-${region}`,
city: decodeURIComponent(city), city: decodeURIComponent(city),
}; };
} }