Skip to content

Commit

Permalink
unnecessary commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddhantKotak committed Aug 10, 2024
1 parent 9329c83 commit 9da3d5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions frontend/src/hooks/usePoly.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ export const usePoly = (coordinates: string) => {
const [id, setId] = useState("");
const apiKey = import.meta.env.VITE_API_KEY;
const coords = coordinates.split(",");
const lat = [
const lon = [
parseFloat(coords[1]),
parseFloat(coords[3]),
parseFloat(coords[5]),
parseFloat(coords[7]),
parseFloat(coords[9]),
];
const lon = [
const lat = [
parseFloat(coords[0]),
parseFloat(coords[2]),
parseFloat(coords[4]),
Expand Down Expand Up @@ -53,7 +53,6 @@ export const usePoly = (coordinates: string) => {
)
.then((response) => {
setId(response.data.id);
console.log(response.data.id);
})
.catch((error) => {
console.log(error);
Expand Down

0 comments on commit 9da3d5c

Please sign in to comment.