Skip to content

Commit 4f61368

Browse files
author
VodeniZeko
committed
updates
1 parent beebc76 commit 4f61368

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

hooks/useResults.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ export default () => {
3636
params: {
3737
limit: 50,
3838
// TODO: change to device location
39-
location: "seattle",
40-
// latitude: position.lat,
41-
// longitude: position.long,
39+
// location: "seattle",
40+
latitude: position.lat,
41+
longitude: position.long,
4242
offset: offset,
4343
term: initialSearch
4444
}
@@ -60,9 +60,9 @@ export default () => {
6060
offset: offset,
6161
term: initialSearch,
6262
// TODO: change to device location
63-
location: "seattle",
64-
// latitude: position.lat,
65-
// longitude: position.long,
63+
// location: "seattle",
64+
latitude: position.lat,
65+
longitude: position.long,
6666
radius: 8046
6767
}
6868
});
@@ -74,7 +74,7 @@ export default () => {
7474
};
7575

7676
useEffect(() => {
77-
// getLocation();
77+
getLocation();
7878
}, []);
7979
return [
8080
located,

0 commit comments

Comments
 (0)