From 83ccc30554d84f52e97d7c31c90131790052735a Mon Sep 17 00:00:00 2001 From: Tiny Paws Date: Wed, 1 Oct 2025 20:31:44 +0200 Subject: [PATCH] Fixed typo and appeased linter --- .../components/MemoEditor/ActionButton/LocationSelector.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx b/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx index e7d015a3b..3cda7884d 100644 --- a/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx +++ b/web/src/components/MemoEditor/ActionButton/LocationSelector.tsx @@ -21,7 +21,7 @@ interface State { position?: LatLng; } -interface NomatimRateLimit { +interface NominatimRateLimit { lastNominatimFetch: Date; nominatimTimeoutId: number | undefined; timeBetweenFetch: number; @@ -34,7 +34,7 @@ const LocationSelector = (props: Props) => { placeholder: props.location?.placeholder || "", position: props.location ? new LatLng(props.location.latitude, props.location.longitude) : undefined, }); - const rateLimit = useRef({ + const rateLimit = useRef({ lastNominatimFetch: new Date(0), nominatimTimeoutId: undefined, timeBetweenFetch: 1300, @@ -95,7 +95,7 @@ const LocationSelector = (props: Props) => { toast.error("Failed to fetch reverse geocoding data"); console.error("Failed to fetch reverse geocoding data:", error); }); - } + }; useEffect(() => { // Fetch reverse geocoding with rate limits