Add display_name to ReverseGeocode response and update AdventureModal

This commit is contained in:
Sean Morley
2024-10-31 23:47:02 -04:00
parent 25ed72afbc
commit a7a49227c4
4 changed files with 31 additions and 15 deletions

View File

@@ -111,6 +111,15 @@
markers = [];
}
$: {
if (
reverseGeocodePlace?.display_name &&
adventure.location != reverseGeocodePlace.display_name
) {
adventure.location = reverseGeocodePlace.display_name;
}
}
let imageSearch: string = adventure.name || '';
async function removeImage(id: string) {

View File

@@ -175,4 +175,5 @@ export type ReverseGeocode = {
region: string;
country: string;
is_visited: boolean;
display_name: string;
};