From 6d750b57c4df1bff5f169d0d5c09c749557c7449 Mon Sep 17 00:00:00 2001 From: sharhio Date: Wed, 4 Sep 2024 10:53:33 +0300 Subject: [PATCH] DT-6182 use scooter availableForSelection --- app/configurations/config.default.js | 2 -- app/configurations/config.hsl.js | 2 -- app/configurations/config.matka.js | 2 -- app/util/planParamUtil.js | 2 +- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/configurations/config.default.js b/app/configurations/config.default.js index acd193f4e3..de91714195 100644 --- a/app/configurations/config.default.js +++ b/app/configurations/config.default.js @@ -834,6 +834,4 @@ export default { }, }, ], - - scooterRoutingOn: false, }; diff --git a/app/configurations/config.hsl.js b/app/configurations/config.hsl.js index e7db804c81..2d7005ba1c 100644 --- a/app/configurations/config.hsl.js +++ b/app/configurations/config.hsl.js @@ -731,6 +731,4 @@ export default { }, startSearchFromUserLocation: true, - - scooterRoutingOn: false, }; diff --git a/app/configurations/config.matka.js b/app/configurations/config.matka.js index dfb8e0329d..13177ec3a6 100644 --- a/app/configurations/config.matka.js +++ b/app/configurations/config.matka.js @@ -391,6 +391,4 @@ export default { includePublicWithBikePlan: true, startSearchFromUserLocation: true, - - scooterRoutingOn: false, }; diff --git a/app/util/planParamUtil.js b/app/util/planParamUtil.js index 053efc9d1f..846d489f51 100644 --- a/app/util/planParamUtil.js +++ b/app/util/planParamUtil.js @@ -199,7 +199,7 @@ export function planQueryNeeded( case PLANTYPE.SCOOTERTRANSIT: /* special logic: relaxed scooter query is made only if no networks allowed */ return ( - config.scooterRoutingOn && + config.transportModes.scooter.availableForSelection && transitModes.length > 0 && !wheelchair && (relaxSettings