From 87b660e584bbfe7477958083790bf162ffac324b Mon Sep 17 00:00:00 2001 From: iamtoruk Date: Sat, 2 May 2026 16:16:43 -0700 Subject: [PATCH] Fix hardcoded $ in forecast comparison text The "vs last month" line in the forecast section used a hardcoded $ instead of the user's selected currency symbol and rate. Use asCompactCurrency() which handles both. Closes #197 --- mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift b/mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift index d676fd3..ec27b48 100644 --- a/mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift +++ b/mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift @@ -515,7 +515,7 @@ private struct ForecastInsight: View { guard previous > 0 else { return "no prior month" } let diff = ((projection - previous) / previous) * 100 let sign = diff >= 0 ? "+" : "" - return "\(sign)\(String(format: "%.0f", diff))% vs last month ($\(String(format: "%.0f", previous)))" + return "\(sign)\(String(format: "%.0f", diff))% vs last month (\(previous.asCompactCurrency()))" } }