mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-30 13:41:50 +02:00
Fixed city showing undefined.
This commit is contained in:
parent
4c544361fd
commit
f450fc35fb
|
@ -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,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user