reversed longitude and latitude in api url

This commit is contained in:
2024-06-13 14:53:27 +02:00
parent 103e3bace3
commit 848ee1ccb4

View File

@@ -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) => {