Skip to content

Commit

Permalink
Small change for linting check
Browse files Browse the repository at this point in the history
Signed-off-by: Celine Pöhl <[email protected]>
  • Loading branch information
CelineMP committed Jun 3, 2024
1 parent a09268e commit c5a4a73
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions frontend/src/components/PopUp/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ const SearchBar: React.FC = () => {
const { currentMapCache } = useContext(MapContext);
const { currentSearchCache, setCurrentSearchCache } = useContext(SearchContext);

const provider = new OpenStreetMapProvider({
params: {
"accept-language": "de",
countrycodes: "de",
addressdetails: 1,
},
});

const fetch = useMemo(
() =>
debounce(async (query: string, callback: (results: MapSelection[]) => void) => {
const provider = new OpenStreetMapProvider({
params: {
"accept-language": "de",
countrycodes: "de",
addressdetails: 1,
},
});
if (query === "") {
callback([]);
return;
Expand All @@ -44,7 +44,7 @@ const SearchBar: React.FC = () => {
}));
callback(transformedResults);
}, 400),
[provider]
[]
);

useEffect(() => {
Expand Down

0 comments on commit c5a4a73

Please sign in to comment.