mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Fixed city showing undefined.
This commit is contained in:
parent
4c544361fd
commit
f450fc35fb
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ export async function getLocation(ip, req) {
|
|||
return {
|
||||
country,
|
||||
subdivision1: region,
|
||||
city: decodeURIComponent(city),
|
||||
city: city ? decodeURIComponent(city) : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue