From 3b61d68ad6c8806367401f3e1b475456c2d88d9e Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Sat, 13 Sep 2025 23:55:12 +0200 Subject: [PATCH] fixed linting --- lib/src/Components/Map/hooks/useReverseGeocode.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/Components/Map/hooks/useReverseGeocode.ts b/lib/src/Components/Map/hooks/useReverseGeocode.ts index 4213f61a..088d3a98 100644 --- a/lib/src/Components/Map/hooks/useReverseGeocode.ts +++ b/lib/src/Components/Map/hooks/useReverseGeocode.ts @@ -24,7 +24,7 @@ interface GeocodeResponse { export function useReverseGeocode( coordinates?: [number, number] | null, - enabled: boolean = true, + enabled = true, accuracy: 'municipality' | 'street' | 'house_number' = 'municipality', ) { const [address, setAddress] = useState('') @@ -59,7 +59,7 @@ export function useReverseGeocode( if (data.features && data.features.length > 0) { const props = data.features[0].properties - const municipality = props.city || props.town || props.village + const municipality = props.city ?? props.town ?? props.village let addressString = '' @@ -103,4 +103,4 @@ export function useReverseGeocode( }, [coordinates, enabled, accuracy]) return { address, loading, error } -} \ No newline at end of file +}