Skip to content

Commit 27f8183

Browse files
committed
fix(PatternStopCard): Fix 0 value continuous pickup/dropoff being displayed as '1'
1 parent 2209c9f commit 27f8183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/editor/components/pattern/PatternStopCard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ class PatternStopContents extends Component<Props, State> {
424424
selectType='continuousPickup'
425425
shouldHaveDisabledOption
426426
title='Indicates whether a rider can board the transit vehicle anywhere along the vehicle’s travel path.'
427-
value={patternStop.continuousPickup || 1}
427+
value={(patternStop.continuousPickup || patternStop.continuousPickup === 0) ? patternStop.continuousPickup : 1}
428428
/>
429429
</Col>
430430
<Col xs={6}>
@@ -435,7 +435,7 @@ class PatternStopContents extends Component<Props, State> {
435435
selectType='continuousDropOff'
436436
shouldHaveDisabledOption
437437
title='Indicates whether a rider can alight from the transit vehicle at any point along the vehicle’s travel path.'
438-
value={patternStop.continuousDropOff || 1}
438+
value={(patternStop.continuousDropOff || patternStop.continuousDropOff === 0) ? patternStop.continuousDropOff : 1}
439439
/>
440440
</Col>
441441
</Row>

0 commit comments

Comments
 (0)