Skip to content

Commit

Permalink
fix(PatternStopCard): Fix 0 value continuous pickup/dropoff being dis…
Browse files Browse the repository at this point in the history
…played as '1'
  • Loading branch information
philip-cline committed Apr 11, 2022
1 parent 2209c9f commit 27f8183
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/editor/components/pattern/PatternStopCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ class PatternStopContents extends Component<Props, State> {
selectType='continuousPickup'
shouldHaveDisabledOption
title='Indicates whether a rider can board the transit vehicle anywhere along the vehicle’s travel path.'
value={patternStop.continuousPickup || 1}
value={(patternStop.continuousPickup || patternStop.continuousPickup === 0) ? patternStop.continuousPickup : 1}
/>
</Col>
<Col xs={6}>
Expand All @@ -435,7 +435,7 @@ class PatternStopContents extends Component<Props, State> {
selectType='continuousDropOff'
shouldHaveDisabledOption
title='Indicates whether a rider can alight from the transit vehicle at any point along the vehicle’s travel path.'
value={patternStop.continuousDropOff || 1}
value={(patternStop.continuousDropOff || patternStop.continuousDropOff === 0) ? patternStop.continuousDropOff : 1}
/>
</Col>
</Row>
Expand Down

0 comments on commit 27f8183

Please sign in to comment.