Merge branch 'dev' into analytics
This commit is contained in:
commit
6f2c2d9aa8
1 file changed
+1
-2
+1
-2
@@ -69,8 +69,7 @@ export async function getLocation(ip, req) {
|
||||
|
||||
return {
|
||||
country,
|
||||
// Vercel documentation says they return only region, but that is not always the case
|
||||
subdivision1: region.includes('-') ? region : `${country}-${region}`,
|
||||
subdivision1: region,
|
||||
city: decodeURIComponent(city),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user