osmlab / field-data-collection

A mobile application for collecting both OSM & private data in the field.
10 stars 7 forks source link

ensure there's a lat/lon when observation is saved #248

Closed sethvincent closed 7 years ago

sethvincent commented 7 years ago

In the rare case an observation doesn't have a lat/lon, we should use the react-native Alert component to notify user before saving.

As it is now, I think the only way this might come up is if someone chose the "adding a new point" button and then never pressed "add location" on the observation view screen.

The check for lat/lon and Alert usage would go here: https://github.com/osmlab/field-data-collection/blob/master/app/screens/Observation/view.js#L94

kamicut commented 7 years ago

Closed with #255