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