Skip to content

Commit 6038eeb

Browse files
committed
fix rank chart colors
1 parent d7cefe1 commit 6038eeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/rank-chart/rank-chart.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export function RankChart({ progress, colors = DEFAULT_COLORS, debug = false }:
7575
d.isGap ? (
7676
<Cell key={i} fill="transparent" />
7777
) : (
78-
<Cell key={i} fill={colors[d.tier % colors.length]} fillOpacity={isActive(d) ? 1 : DIM_OPACITY} />
78+
<Cell key={i} fill={colors[(d.tier - 1) % colors.length]} fillOpacity={isActive(d) ? 1 : DIM_OPACITY} />
7979
),
8080
)}
8181
</Pie>

0 commit comments

Comments
 (0)