Few more bug fixes

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

No files matched your search

+6 -8
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,
// },
})
}
})