From c3f37b66d0c4f21e5d47fd44053f786a159bd4e9 Mon Sep 17 00:00:00 2001 From: Sean Morley Date: Tue, 12 Nov 2024 23:12:08 -0500 Subject: [PATCH] Fix detection of custom locations in AdventureModal --- frontend/src/lib/components/AdventureModal.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/AdventureModal.svelte b/frontend/src/lib/components/AdventureModal.svelte index cd23a313..4c77a998 100644 --- a/frontend/src/lib/components/AdventureModal.svelte +++ b/frontend/src/lib/components/AdventureModal.svelte @@ -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 &&