Few more bug fixes

This commit is contained in:
John Lyon-Smith
2018-04-23 15:16:56 -07:00
parent 24420935a1
commit 30a66e4e34
4 changed files with 34 additions and 28 deletions

View File

@@ -97,16 +97,14 @@ export class Activity extends React.Component {
.getActivity(id)
.then((activity) => {
if (activity) {
const [lng, lat] = activity.location.coordinates
activity.location = formatLatLng(lat, lng)
this.setState({
binder: new FormBinder(activity, Activity.bindings),
region: {
latitude: lat,
longitude: lng,
latitudeDelta: 0.01,
longitudeDelta: 0.01,
},
// region: {
// latitude: lat,
// longitude: lng,
// latitudeDelta: 0.01,
// longitudeDelta: 0.01,
// },
})
}
})