Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
always fallback to web
Browse files Browse the repository at this point in the history
  • Loading branch information
devfd committed Apr 7, 2017
1 parent cdc2205 commit 0a1feb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/geocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
},
Expand All @@ -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);
});
},
Expand Down

0 comments on commit 0a1feb1

Please sign in to comment.