Skip to content

Commit

Permalink
refactor(dependency-service.js): remove unused parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
amoncaldas committed Jan 11, 2022
1 parent 5fa4508 commit 0ef4401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/support/dependency-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const getChildrenFilterValue = (filter) => {
*/
const isRoundTripFilterActive = () => {
const roundTripFilter = OrsFilterUtil.getFilterRefByName(constants.roundTripFilterName)
const roundTripValue = getFilterValue(roundTripFilter, constants.services.directions)
const roundTripValue = getFilterValue(roundTripFilter)
const isRoundTrip = roundTripValue !== null
return isRoundTrip
}
Expand Down Expand Up @@ -296,7 +296,7 @@ const setVisibility = (scopedFilters, key) => {
*/
const isAvailable = (filter) => {
if (filter.validWhen) {
let matchesRules = getMatchesDependencyRules(filter, 'validWhen', false)
let matchesRules = getMatchesDependencyRules(filter, 'validWhen')
if (!matchesRules) {
return false
}
Expand Down

0 comments on commit 0ef4401

Please sign in to comment.