Skip to content

Commit c664f9b

Browse files
Add comment for itinerary walktime
1 parent 35f95cb commit c664f9b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/components/narrative/metro/metro-itinerary.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@ class MetroItinerary extends NarrativeItinerary {
417417
time: (
418418
<FormattedDuration
419419
duration={
420+
/* If the walk time is truly zero, show 0. But if the walk time is just less
421+
than a minute, round up to the nearest minute to avoid showing no walk time. */
420422
itinerary.walkTime > 0
421423
? ensureAtLeastOneMinute(itinerary.walkTime)
422424
: itinerary.walkTime

0 commit comments

Comments
 (0)