correct if no place find

This commit is contained in:
Laurent Gay 2024-11-21 17:47:09 +01:00 committed by setop
parent 368cdb9592
commit 9796304a9a

View file

@ -417,6 +417,7 @@ const userSettingsLocation = computed(() => {
coords.value,
placeName
);
if (placeName) {
return {
lat: coords.value?.latitude,
lon: coords.value?.longitude,
@ -424,6 +425,9 @@ const userSettingsLocation = computed(() => {
picture: location?.pictureInfo,
isIPLocation: coords.value?.isIPLocation,
};
} else {
return {};
}
});
const { result: currentUserLocationResult } = useQuery<{