Skip to content

Commit

Permalink
fix(src): Fix arguments in getAddress
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Jun 16, 2016
1 parent 6811a89 commit 1aa8ef4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const getFromCache = (lat, lng) => {

const getAddress = loc => {
return new Promise((resolve, reject) => {
getCoordinates(loc).then(({lng, lat}) => {
getCoordinates(loc).then(data => {
const lng = data.lng;
const lat = data.lat;
if (client) {
getFromCache(lat, lng).then(reply => {
if (reply) resolve(reply);
Expand Down

0 comments on commit 1aa8ef4

Please sign in to comment.