Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbrodsky committed Jun 3, 2024
1 parent 54718a6 commit 99a09c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions website/src/components/explorer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export default function HomeExporer({ children }) {
[splitUserInput, setUserInput],
);
const coordinateOnClick = useCallback(
({coordinate, zoom}) => {
({ coordinate, zoom }) => {
if (constantResolution !== undefined) {
const asSet = new Set(splitUserInput);
asSet.add(
Expand All @@ -145,7 +145,9 @@ export default function HomeExporer({ children }) {
setUserInput([...asSet].join(", "));
} else if (splitUserInput.length === 0) {
const detectedRes = zoomToResolution(zoom);
setUserInput(`${latLngToCell(coordinate[1], coordinate[0], detectedRes)}`);
setUserInput(
`${latLngToCell(coordinate[1], coordinate[0], detectedRes)}`,
);
}
},
[splitUserInput, setUserInput, constantResolution],
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/explorer/map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export function ExplorerMap({
}
} else {
if (coordinateOnClick) {
coordinateOnClick({coordinate, zoom: viewport.zoom});
coordinateOnClick({ coordinate, zoom: viewport.zoom });
}
}
},
Expand Down

0 comments on commit 99a09c7

Please sign in to comment.