reversed longitude and latitude in api url
This commit is contained in:
@@ -41,7 +41,7 @@ const App = () => {
|
||||
|
||||
const loadPosts = async () => {
|
||||
const location = await locationUtils.getCurrentLocation();
|
||||
return await postApi.getPostsByCoords(location.lon, location.lat);
|
||||
return await postApi.getPostsByCoords(location.lat, location.lon);
|
||||
}
|
||||
|
||||
const addPost = async (title, text) => {
|
||||
|
||||
Reference in New Issue
Block a user