From 239fab1f70a1ed3ba87dbf3d935dbc4412f05eca Mon Sep 17 00:00:00 2001 From: sharhio Date: Thu, 12 Sep 2024 14:51:41 +0300 Subject: [PATCH] remove unnecessary config, check rental network --- app/component/map/tile-layer/RentalVehicles.js | 3 ++- app/configurations/config.kela.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/component/map/tile-layer/RentalVehicles.js b/app/component/map/tile-layer/RentalVehicles.js index 8b15d5f442..b3d4f91a62 100644 --- a/app/component/map/tile-layer/RentalVehicles.js +++ b/app/component/map/tile-layer/RentalVehicles.js @@ -166,7 +166,8 @@ class RentalVehicles { 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] && + this.config.vehicleRental.networks[network].enabled && this.config.vehicleRental.networks[network].showRentalVehicles && this.config.vehicleRental.networks[network].type === formFactor.toLowerCase())) && diff --git a/app/configurations/config.kela.js b/app/configurations/config.kela.js index 1306c3fd20..714bd8689b 100644 --- a/app/configurations/config.kela.js +++ b/app/configurations/config.kela.js @@ -115,7 +115,6 @@ export default { 'mode-ferry-pier': '#666666', 'mode-citybike': '#FCBC19', 'mode-citybike-secondary': '#333333', - 'mode-scooter': '#BABABA', }, },