Skip to content

Commit

Permalink
fix driver modal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rishub committed May 3, 2018
1 parent 493df25 commit bcb46c2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/containers/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,14 @@ class DriverPanel extends React.Component {
<h2> Upcoming rides </h2>
{tripCards}
</Row>
<RideModal
trip={selectedTrip}
visible={modalVisible}
closeModal={this.closeModal}
delete={this.deleteRide}
driver
/>
{modalVisible && (
<RideModal
trip={selectedTrip}
closeModal={this.closeModal}
delete={this.deleteRide}
driver
/>
)}
</div>
);
}
Expand Down

0 comments on commit bcb46c2

Please sign in to comment.