Skip to content

Commit

Permalink
Fix bug in Route Finder result sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
piero-la-lune committed May 21, 2022
1 parent f3b9d34 commit e8b8b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/Results.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ const Results = React.memo((props) => {
value={sortBy}
onChange={(evt) => {
setFilteredResults(r => {
r.sort(sortFunctions[sortBy]);
r.sort(sortFunctions[evt.target.value]);
return [...r];
});
setSortBy(evt.target.value);
Expand Down

0 comments on commit e8b8b08

Please sign in to comment.