Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289267 committed Apr 18, 2024
1 parent 6d29ff7 commit 8b72579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/ranking/RankingView.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const RankingView = () => {
try {
var ranking = await retriever.getTopTen();
setRankingData(ranking.usersCompetitiveStats);
var myrank = await retriever.getMyPosition("user.username");
var myrank = await retriever.getMyPosition(user.username);
setMyRankingData(myrank);
console.log(myrank)
} catch (error) {
Expand All @@ -32,7 +32,7 @@ const RankingView = () => {
return (
<div className='table'>
<BackButton t={t} />
<h1>{t("ranking.ranking")}🏅</h1>
<h1>{t("ranking.ranking")}</h1>
{rankingData && rankingData.length > 0 && myRankingData ? (
<table>
<thead>
Expand Down

0 comments on commit 8b72579

Please sign in to comment.