File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -308,6 +308,8 @@ itinerary:
308
308
disableMetroSeperatorDot : false
309
309
# Shows the duration of a leg below the leg in the metro itinerary summary
310
310
showLegDurations : false
311
+ # Allows calorie counts to be hidden
312
+ displayCalories : true
311
313
312
314
# The transitOperators key is a list of transit operators that can be used to
313
315
# order transit agencies when sorting by route. Also, this can optionally
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ const mapStateToProps = (state) => {
16
16
const { itinerary } = state . otp . config
17
17
return {
18
18
defaultFareKey : itinerary ?. defaultFareKey || undefined ,
19
+ displayCalories :
20
+ typeof itinerary ?. displayCalories === 'boolean'
21
+ ? itinerary ?. displayCalories
22
+ : undefined ,
19
23
fareDetailsLayout : itinerary ?. fareDetailsLayout || undefined ,
20
24
fareKeyNameMap : itinerary ?. fareKeyNameMap || { }
21
25
}
You can’t perform that action at this time.
0 commit comments