diff --git a/js/geocoder.js b/js/geocoder.js index da2c3b7..3a4563e 100644 --- a/js/geocoder.js +++ b/js/geocoder.js @@ -16,7 +16,7 @@ export default { } return RNGeocoder.geocodePosition(position).catch(err => { - if (!this.apiKey || err.code !== 'NOT_AVAILABLE') { throw err; } + if (!this.apiKey) { throw err; } return GoogleApi.geocodePosition(this.apiKey, position); }); }, @@ -27,7 +27,7 @@ export default { } return RNGeocoder.geocodeAddress(address).catch(err => { - if (!this.apiKey || err.code !== 'NOT_AVAILABLE') { throw err; } + if (!this.apiKey) { throw err; } return GoogleApi.geocodeAddress(this.apiKey, address); }); },