Skip to content

Commit

Permalink
Merge pull request #961 from dadiorchen/date-format
Browse files Browse the repository at this point in the history
fix: eslint
  • Loading branch information
dadiorchen authored Nov 23, 2022
2 parents 5d04150 + c17b5f8 commit 0f17a6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "treetracker-admin-client",
"version": "1.107.10",
"version": "1.107.11",
"private": true,
"dependencies": {
"@date-io/date-fns": "^1.3.13",
Expand Down
4 changes: 1 addition & 3 deletions src/components/CaptureMatching/CaptureMatchingView.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ const filterTree = (trees, capture) => {
});

// order by distance and captutre date
return trees.sort((a, b) => {
return filteredTrees.sort((a, b) => {
const distance1 = getDistance(
{
latitude: Number(a.captures[0].latitude || a.captures[0].lat),
Expand All @@ -265,7 +265,6 @@ const filterTree = (trees, capture) => {
longitude: Number(capture.longitude || capture.lon),
}
);
log.warn('distance1:', distance1);
const distance2 = getDistance(
{
latitude: Number(b.captures[0].latitude || b.captures[0].lat),
Expand All @@ -276,7 +275,6 @@ const filterTree = (trees, capture) => {
longitude: Number(capture.longitude || capture.lon),
}
);
log.warn('distance2:', distance2);
if (distance1 < distance2) {
return -1;
} else if (distance1 > distance2) {
Expand Down

0 comments on commit 0f17a6d

Please sign in to comment.