From edfb960e9732eeaa1e4eab2a1381e25d695deaad Mon Sep 17 00:00:00 2001 From: dahyeon Date: Mon, 8 Jun 2026 01:41:23 -0700 Subject: [PATCH] fix(web): highlight shared current peak tier --- apps/web/src/components/TierHistoryChart.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/web/src/components/TierHistoryChart.tsx b/apps/web/src/components/TierHistoryChart.tsx index 7d6c11df..3e3e7f09 100644 --- a/apps/web/src/components/TierHistoryChart.tsx +++ b/apps/web/src/components/TierHistoryChart.tsx @@ -530,13 +530,19 @@ export default function TierHistoryChart({ r={3} stroke="currentColor" fill="currentColor" - className="text-primary" + className={ + isSamePoint(summary.peak, summary.last) + ? "text-amber-400" + : "text-primary" + } label={{ value: formatTierCompactLabel(summary.last), position: "top", fill: "currentColor", fontSize: 10, - className: "text-primary", + className: isSamePoint(summary.peak, summary.last) + ? "text-amber-400" + : "text-primary", }} />