diff --git a/webapp/src/components/ranking/RankingRetriever.js b/webapp/src/components/ranking/RankingRetriever.js index e22d2e0..a84de7e 100644 --- a/webapp/src/components/ranking/RankingRetriever.js +++ b/webapp/src/components/ranking/RankingRetriever.js @@ -74,7 +74,7 @@ class RankingRetriever{ ] }*/ } - async getMyPosition(user){ + async getUser(user){ try { const response = await axios.get(this.apiUrl + '/'+user);//finding the top ten diff --git a/webapp/src/components/ranking/RankingView.js b/webapp/src/components/ranking/RankingView.js index e7c76f4..e88581e 100644 --- a/webapp/src/components/ranking/RankingView.js +++ b/webapp/src/components/ranking/RankingView.js @@ -46,48 +46,53 @@ const RankingView = () => {
{t("ranking.position")} | -{t("ranking.username")} | -{t("ranking.points")} | -{t("ranking.num_games")} | -
---|---|---|---|
{index + 1} | -{user._id} | -{user.totalPoints} | -{user.totalCompetitiveGames} | +