diff --git a/src/sidebar/RoutingResults.tsx b/src/sidebar/RoutingResults.tsx index 1087089f..d39efcac 100644 --- a/src/sidebar/RoutingResults.tsx +++ b/src/sidebar/RoutingResults.tsx @@ -413,7 +413,8 @@ function RHButton(p: { else if (p.type == 'border') tmpDescription = p.description + ': ' + p.values[index] else if (p.values && p.values[index]) { if (p.type.includes('rating')) - tmpDescription = p.description + ': ' + p.value + ' (' + p.type + ':' + p.values[index] + ')' + tmpDescription = + p.description + ': ' + p.value + ' (' + p.type + ':' + p.values[index] + ')' else if (p.type.includes('steep')) tmpDescription = p.description + ': ' + p.values[index] else tmpDescription = p.description + ': ' + p.value + ' ' + p.values[index] } else tmpDescription = p.description + ': ' + p.value diff --git a/src/sidebar/search/routingProfiles/RoutingProfiles.tsx b/src/sidebar/search/routingProfiles/RoutingProfiles.tsx index 06c5dca2..5710b057 100644 --- a/src/sidebar/search/routingProfiles/RoutingProfiles.tsx +++ b/src/sidebar/search/routingProfiles/RoutingProfiles.tsx @@ -76,7 +76,7 @@ export default function ({ // Now add the profiles to each key e.g. 'car_avoid_ferry' to the 'car_' key. // Create a special key '_' for profile names with an unknown icon. routingProfiles.forEach(p => { - const key = (Object.keys(icons).find(k => p.name.startsWith(k + '_')) || "") + "_" + const key = (Object.keys(icons).find(k => p.name.startsWith(k + '_')) || '') + '_' if (!icons[p.name]) customProfiles[key] = [...(customProfiles[key] || []), p.name] }) diff --git a/src/stores/QueryStore.ts b/src/stores/QueryStore.ts index 24549b7e..c1e4edbf 100644 --- a/src/stores/QueryStore.ts +++ b/src/stores/QueryStore.ts @@ -344,7 +344,8 @@ export default class QueryStore extends Store { if ( state.queryPoints.length === 2 && state.maxAlternativeRoutes > 1 && - (ApiImpl.isMotorVehicle(state.routingProfile.name) && maxDistance < 7_000_000 || maxDistance < 500_000) + ((ApiImpl.isMotorVehicle(state.routingProfile.name) && maxDistance < 7_000_000) || + maxDistance < 500_000) ) requests.push(QueryStore.buildRouteRequest(state)) }