diff --git a/src/store/actions.js b/src/store/actions.js index 45c8ddc..facd49d 100644 --- a/src/store/actions.js +++ b/src/store/actions.js @@ -29,7 +29,10 @@ export function fetchReports({ commit }) { commit(STORE_REPORTS, { reports }); commit(IS_DONE_LOADING); }) - .catch(() => commit(IS_DONE_LOADING)); + .catch((exc) => { + commit(IS_DONE_LOADING); + throw exc; + }); } export function downvote({ commit }, { id }) { @@ -53,7 +56,10 @@ export function saveReport({ commit }, { type, lat, lng }) { commit(PUSH_REPORT, { report }); commit(IS_DONE_LOADING); }) - .catch(() => commit(IS_DONE_LOADING)); + .catch((exc) => { + commit(IS_DONE_LOADING); + throw exc; + }); } export function saveUnsentReport({ commit }, { report }) { diff --git a/src/views/Map.vue b/src/views/Map.vue index 44a4685..b8beb7d 100644 --- a/src/views/Map.vue +++ b/src/views/Map.vue @@ -243,7 +243,7 @@ export default { this.$store.state.location.error = 1; } } - this.$store.dispatch('fetchReports'); + this.$store.dispatch('fetchReports').catch(() => {}); }, }; diff --git a/src/views/Onboarding.vue b/src/views/Onboarding.vue index 3fec25e..82ba81d 100644 --- a/src/views/Onboarding.vue +++ b/src/views/Onboarding.vue @@ -67,7 +67,7 @@ export default { goToMap() { // Eventually vibrate, to ensure permission is prompted before driving if (this.$store.state.settings.hasVibratePermission && navigator.vibrate) { - navigator.vibrate(1); + navigator.vibrate(100); } if (!this.$store.state.settings.skipOnboarding) {