correct if no place find
This commit is contained in:
parent
368cdb9592
commit
9796304a9a
|
@ -417,6 +417,7 @@ const userSettingsLocation = computed(() => {
|
||||||
coords.value,
|
coords.value,
|
||||||
placeName
|
placeName
|
||||||
);
|
);
|
||||||
|
if (placeName) {
|
||||||
return {
|
return {
|
||||||
lat: coords.value?.latitude,
|
lat: coords.value?.latitude,
|
||||||
lon: coords.value?.longitude,
|
lon: coords.value?.longitude,
|
||||||
|
@ -424,6 +425,9 @@ const userSettingsLocation = computed(() => {
|
||||||
picture: location?.pictureInfo,
|
picture: location?.pictureInfo,
|
||||||
isIPLocation: coords.value?.isIPLocation,
|
isIPLocation: coords.value?.isIPLocation,
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
const { result: currentUserLocationResult } = useQuery<{
|
const { result: currentUserLocationResult } = useQuery<{
|
||||||
|
|
Loading…
Reference in a new issue