fix(web): highlight shared current peak tier

This commit is contained in:
dahyeon committed 2026-06-08 01:41:23 -07:00
1 parent b2d438785b
commit edfb960e97
1 file changed
+8 -2
+8 -2
View File
@@ -530,13 +530,19 @@ export default function TierHistoryChart({
r={3} r={3}
stroke="currentColor" stroke="currentColor"
fill="currentColor" fill="currentColor"
className="text-primary" className={
isSamePoint(summary.peak, summary.last)
? "text-amber-400"
: "text-primary"
}
label={{ label={{
value: formatTierCompactLabel(summary.last), value: formatTierCompactLabel(summary.last),
position: "top", position: "top",
fill: "currentColor", fill: "currentColor",
fontSize: 10, fontSize: 10,
className: "text-primary", className: isSamePoint(summary.peak, summary.last)
? "text-amber-400"
: "text-primary",
}} }}
/> />
</> </>