diff --git a/lib/detect.ts b/lib/detect.ts index 868d0a806..0d0614b1d 100644 --- a/lib/detect.ts +++ b/lib/detect.ts @@ -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), }; }