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,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<{