Skip to content

Commit 62095c2

Browse files
author
nirakarpatel
committed
Fix lint errors in ProfileSidebar (unused variables)
1 parent 80fac4c commit 62095c2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

client/src/components/ProfileSidebar.jsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ const FALLBACK_BADGES = [
3232
/* ── XP Level helper ─────────────────────────────────────── */
3333
const XP_PER_LEVEL = 500;
3434
const getLevel = (xp) => Math.floor(xp / XP_PER_LEVEL) + 1;
35-
const getLevelPct = (xp) => ((xp % XP_PER_LEVEL) / XP_PER_LEVEL) * 100;
3635

3736
/* ── Animated XP bar ─────────────────────────────────────── */
3837
const XPBar = ({ xp, loginXp = 0, challengeXp = 0, loginCount = 0 }) => {
@@ -43,7 +42,6 @@ const XPBar = ({ xp, loginXp = 0, challengeXp = 0, loginCount = 0 }) => {
4342
const lvl = getLevel(xp);
4443

4544
const loginRatio = xp > 0 ? loginXp / xp : 0;
46-
const challengeRatio = xp > 0 ? challengeXp / xp : 1;
4745

4846
return (
4947
<div ref={ref} className="space-y-1.5 relative group">

0 commit comments

Comments
 (0)