Skip to content

Commit db9dc53

Browse files
authored
Merge pull request #317 from opentripplanner/hide-trip-status-on-create
fix(TripBasicsPane): Hide trip status on first save.
2 parents 0e24353 + 875bbd9 commit db9dc53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: lib/components/user/monitored-trip/trip-basics-pane.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ class TripBasicsPane extends Component {
103103

104104
return (
105105
<div>
106-
<TripStatus monitoredTrip={monitoredTrip} />
106+
{/* Do not show trip status when saving trip for the first time
107+
(it doesn't exist in backend yet). */}
108+
{!isCreating && <TripStatus monitoredTrip={monitoredTrip} />}
107109
<ControlLabel>Selected itinerary:</ControlLabel>
108110
<TripSummary monitoredTrip={monitoredTrip} />
109111

0 commit comments

Comments
 (0)