From 1846d8284c28d96b91d685ac0e14b9e10f416a65 Mon Sep 17 00:00:00 2001 From: sharhio Date: Mon, 26 Aug 2024 13:06:17 +0300 Subject: [PATCH] DT-6182 only show vehicles that allow pickup --- app/component/map/tile-layer/RentalVehicles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/component/map/tile-layer/RentalVehicles.js b/app/component/map/tile-layer/RentalVehicles.js index 3299e73725..8b15d5f442 100644 --- a/app/component/map/tile-layer/RentalVehicles.js +++ b/app/component/map/tile-layer/RentalVehicles.js @@ -72,7 +72,7 @@ class RentalVehicles { this.shouldShowRentalVehicle( feature.properties.id, feature.properties.network, - feature.properties.isDisabled, + feature.properties.pickupAllowed, feature.properties.formFactor, ) ) { @@ -163,14 +163,14 @@ class RentalVehicles { ); }; - shouldShowRentalVehicle = (id, network, isDisabled, formFactor) => + shouldShowRentalVehicle = (id, network, pickupAllowed, formFactor) => (!this.tile.stopsToShow || this.tile.stopsToShow.includes(id)) && (!network || (this.config.vehicleRental.networks[network].enabled && this.config.vehicleRental.networks[network].showRentalVehicles && this.config.vehicleRental.networks[network].type === formFactor.toLowerCase())) && - !isDisabled; + pickupAllowed; static getName = () => 'scooter';