We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6811a89 commit 1aa8ef4Copy full SHA for 1aa8ef4
src/index.js
@@ -42,7 +42,9 @@ const getFromCache = (lat, lng) => {
42
43
const getAddress = loc => {
44
return new Promise((resolve, reject) => {
45
- getCoordinates(loc).then(({lng, lat}) => {
+ getCoordinates(loc).then(data => {
46
+ const lng = data.lng;
47
+ const lat = data.lat;
48
if (client) {
49
getFromCache(lat, lng).then(reply => {
50
if (reply) resolve(reply);
0 commit comments