Skip to content

fix: sync profile rank with leaderboard using gitRankPoints#587

Open
Priyanka0205-CSE wants to merge 1 commit into
indresh404:mainfrom
Priyanka0205-CSE:fix/rank-sync-profile-leaderboard
Open

fix: sync profile rank with leaderboard using gitRankPoints#587
Priyanka0205-CSE wants to merge 1 commit into
indresh404:mainfrom
Priyanka0205-CSE:fix/rank-sync-profile-leaderboard

Conversation

@Priyanka0205-CSE

Copy link
Copy Markdown
Contributor

What's the bug?

Profile page showed rank based on totalPoints but the
leaderboard ranked users by gitRankPoints — causing a mismatch.

Fix

Updated fetchRank in Profile.jsx to query using
points.gitRankPoints and filter onboardingStatus == complete,
matching exactly how GitRank leaderboard calculates rank.

Closes #579

@vercel

vercel Bot commented Jun 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ranker-hub Ready Ready Preview, Comment Jun 17, 2026 6:49pm

@github-actions github-actions Bot added bug Something isn't working frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review labels Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working frontend Frontend related changes (HTML/CSS/JS/React) gssoc GirlScript Summer of Code gssoc26 GirlScript Summer of Code 2026 nsoc NSoC NSoC'26 NSoC 2026 pending-review PR is pending review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: User rank position shown on profile doesn't match the actual rank on the leaderboard

1 participant