Reset error value when clicking the retry button to fetch location

This commit is contained in:
Lucas Verney 2018-06-29 15:09:39 +02:00
parent 9d91fa0b71
commit f499538717

View File

@ -81,6 +81,7 @@ export default {
}, },
methods: { methods: {
initializePositionWatching() { initializePositionWatching() {
this.error = null; // Reset any error
this.disablePositionWatching(); // Ensure at most one at the same time this.disablePositionWatching(); // Ensure at most one at the same time
if (constants.MOCK_LOCATION) { if (constants.MOCK_LOCATION) {