From b168fe2b9ef5265761ae5b798ff1b0f5cda6b358 Mon Sep 17 00:00:00 2001 From: "Phyks (Lucas Verney)" Date: Thu, 13 Sep 2018 15:52:39 +0200 Subject: [PATCH] Fix a bug with manual address selection --- src/components/LocationError.vue | 5 ++++- src/constants.js | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/LocationError.vue b/src/components/LocationError.vue index b30be3c..2be7835 100644 --- a/src/components/LocationError.vue +++ b/src/components/LocationError.vue @@ -25,7 +25,10 @@ export default { onManualLocationPicker(value) { this.$store.dispatch( 'setCurrentPosition', - { latLng: [value.latlng.lat, value.latlng.lng] }, + { + coords: { latitude: value.latlng.lat, longitude: value.latlng.lng }, + timestamp: new Date().getTime(), + }, ); }, }, diff --git a/src/constants.js b/src/constants.js index 04228f4..3e7674a 100644 --- a/src/constants.js +++ b/src/constants.js @@ -23,7 +23,6 @@ export const REPORT_TYPES = { image: accidentIcon, marker: accidentMarker, markerLarge: accidentMarker, - }, gcum: { description: 'reportLabels.gcumDescription',