Fixed city showing undefined.

This commit is contained in:
Mike Cao committed 2023-04-25 16:56:31 -07:00
1 parent 4c544361fd
commit f450fc35fb
1 file changed
+1 -1
+1 -1
View File
@@ -70,7 +70,7 @@ export async function getLocation(ip, req) {
return { return {
country, country,
subdivision1: region, subdivision1: region,
city: decodeURIComponent(city), city: city ? decodeURIComponent(city) : undefined,
}; };
} }