Skip to content

Commit

Permalink
DT-6182 only show vehicles that allow pickup
Browse files Browse the repository at this point in the history
  • Loading branch information
sharhio committed Sep 2, 2024
1 parent 19650b9 commit 1846d82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/component/map/tile-layer/RentalVehicles.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class RentalVehicles {
this.shouldShowRentalVehicle(
feature.properties.id,
feature.properties.network,
feature.properties.isDisabled,
feature.properties.pickupAllowed,
feature.properties.formFactor,
)
) {
Expand Down Expand Up @@ -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';

Expand Down

0 comments on commit 1846d82

Please sign in to comment.