Skip to content

Commit

Permalink
fix: Saving a new ride now adds it to "My events"
Browse files Browse the repository at this point in the history
Fixes #138
  • Loading branch information
kachnitel committed Dec 31, 2019
1 parent 200eb05 commit f1616f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/screens/CreateRideScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class CreateRideScreen extends React.Component {
// TODO: Validate
this.setState({ saving: true })
await this.event.saveNew()
this.props.UserStore.currentUser.addEvent(this.event.id)

ToastAndroid.show('Ride created.', ToastAndroid.SHORT)

Expand Down

0 comments on commit f1616f4

Please # to comment.