Skip to content

Commit

Permalink
Fix detection of custom locations in AdventureModal
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmorley15 committed Nov 13, 2024
1 parent 954c154 commit c3f37b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/lib/components/AdventureModal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@
}
$: {
is_custom_location =
adventure.location !== reverseGeocodePlace?.display_name || !reverseGeocodePlace;
is_custom_location = adventure.location != reverseGeocodePlace?.display_name;
}
if (adventure.longitude && adventure.latitude) {
Expand Down Expand Up @@ -300,6 +299,9 @@
}
reverseGeocodePlace = data;
console.log(reverseGeocodePlace);
console.log(is_custom_location);
if (
reverseGeocodePlace &&
reverseGeocodePlace.display_name &&
Expand Down

0 comments on commit c3f37b6

Please sign in to comment.