From 0a1feb18bd366839211cbbe806215bcd6ea9850f Mon Sep 17 00:00:00 2001 From: devfd Date: Fri, 7 Apr 2017 14:53:26 +0200 Subject: [PATCH] always fallback to web --- js/geocoder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); },