From 848ee1ccb4378dbf84e11c94e8d8e700e43030bc Mon Sep 17 00:00:00 2001 From: Timo Schneider Date: Thu, 13 Jun 2024 14:53:27 +0200 Subject: [PATCH] reversed longitude and latitude in api url --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index d03979a..5b49d6f 100644 --- a/src/App.js +++ b/src/App.js @@ -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) => {