diff --git a/webapp/src/components/ranking/RankingRetriever.js b/webapp/src/components/ranking/RankingRetriever.js index d2c11001..41953d22 100644 --- a/webapp/src/components/ranking/RankingRetriever.js +++ b/webapp/src/components/ranking/RankingRetriever.js @@ -8,7 +8,7 @@ class RankingRetriever{ } async getTopTen() { - /* + try { const response = await axios.get(this.apiUrl + '/top10');//finding the top ten const receivedTopTenRanking = await response.data; @@ -18,8 +18,8 @@ class RankingRetriever{ console.log(error) throw new Error(error); - }*/ - + } + /* return { "usersCompetitiveStats": [ { @@ -73,10 +73,10 @@ class RankingRetriever{ "totalCompetitiveGames": 11 } ] - } + }*/ } async getMyPosition(user){ - /* + try { const response = await axios.get(this.apiUrl + '/'+user);//finding the top ten const receivedMyRanking = await response.data; @@ -86,13 +86,13 @@ class RankingRetriever{ console.log(error) throw new Error(error); - }*/ - + } + /* return { "_id": "myUser", "totalPoints": 250, "totalCompetitiveGames": 1 - }; + };*/ }