Fix detection of custom locations in AdventureModal
This commit is contained in:
@@ -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) {
|
||||
@@ -300,6 +299,9 @@
|
||||
}
|
||||
reverseGeocodePlace = data;
|
||||
|
||||
console.log(reverseGeocodePlace);
|
||||
console.log(is_custom_location);
|
||||
|
||||
if (
|
||||
reverseGeocodePlace &&
|
||||
reverseGeocodePlace.display_name &&
|
||||
|
||||
Reference in New Issue
Block a user