Skip to content

Commit

Permalink
removed if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Lian-Athofer1 committed Feb 6, 2024
1 parent 715c986 commit 57cbbf3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ function generateClearLink(d) {
}

function showHideDistanceInput(show, orderBy) {

$('.find-a-course-page #distance-block').show();
if ($("#orderBy-Input").length && $(".find-a-course-page #orderBy-Input option[value='Distance']").length < 1) {
$("#orderBy-Input")[0].options.add(new Option("Distance", "Distance"));
}
$("#orderBy-Input")[0].options.add(new Option("Distance", "Distance"));

}

function showHideClearFilters(show, searchTerm, town, coordinates) {
Expand Down

0 comments on commit 57cbbf3

Please sign in to comment.