Skip to content

Commit

Permalink
fix: GPS loading bug
Browse files Browse the repository at this point in the history
  • Loading branch information
meakbiyik committed Oct 18, 2023
1 parent 37ae733 commit 1643ea5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ function App() {
const lines = file.split("\n");
// check if the first line is a header, remove it if it is
if (lines[0].includes("lat,lng,cts")) lines.shift();
const parsed = file.split("\n").map((line: string) => {
const parsed = lines.map((line: string) => {
const [lat, lng, cts] = line.split(",");
return {
lat: parseFloat(lat),
Expand Down

0 comments on commit 1643ea5

Please sign in to comment.