diff --git a/app/views/Export.js b/app/views/Export.js index d78f1f60e8..bb430a0f55 100644 --- a/app/views/Export.js +++ b/app/views/Export.js @@ -56,7 +56,7 @@ function ExportScreen() { async function OnShare() { try { - let locationData = await new LocationData.getLocationData(); + let locationData = await new LocationData().getLocationData(); const jsonData = base64.encode(JSON.stringify(locationData)); const title = 'PrivateKit_.json'; diff --git a/app/views/Overlap.js b/app/views/Overlap.js index 5f36cb4e06..eac2db679c 100644 --- a/app/views/Overlap.js +++ b/app/views/Overlap.js @@ -252,7 +252,7 @@ class OverlapScreen extends Component { const dist_threshold = 2000; //In KMs const latestLat = this.state.initialRegion.latitude; const latestLong = this.state.initialRegion.longitude; - const index = 0; + var index = 0; for (const key in records) { const latitude = parseFloat(key.split('|')[0]);