1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-07-23 06:49:37 +02:00

Fix detection of custom locations in AdventureModal

This commit is contained in:
Sean Morley 2024-11-12 23:12:08 -05:00
parent 954c154add
commit c3f37b66d0

View file

@ -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 &&