We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16f7fc0 commit 3d66aeeCopy full SHA for 3d66aee
learnmate-frontend/src/pages/Leaderboard.jsx
@@ -272,7 +272,15 @@ const Leaderboard = () => {
272
Keep Climbing! 🚀
273
</h3>
274
<p className="text-gray-600 dark:text-gray-400">
275
- You're {leaderboardData[6].rank - 7} places away from top 10. Complete more quizzes to climb!
+ {userRank ? (
276
+ userRank.rank > 10 ? (
277
+ <>You're {userRank.rank - 10} places away from the top 10. Complete more quizzes to climb!</>
278
+ ) : (
279
+ <>You're doing great! Keep maintaining your top 10 position!</>
280
+ )
281
282
+ <>Start completing quizzes to join the leaderboard!</>
283
+ )}
284
</p>
285
</div>
286
<div className="flex items-center gap-2">
0 commit comments