diff --git a/mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift b/mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift index 4f47ec7..e1255a2 100644 --- a/mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift +++ b/mac/Sources/CodeBurnMenubar/Views/HeatmapSection.swift @@ -1086,7 +1086,7 @@ private struct SessionDetailsList: View { .padding(.leading, 4) } HStack(spacing: 4) { - ForEach(sess.models.prefix(3), id: \.name) { model in + ForEach(Array(sess.models.prefix(3).enumerated()), id: \.offset) { _, model in Text(model.name) .font(.system(size: 8.5, weight: .medium)) .foregroundStyle(.secondary) diff --git a/mac/Sources/CodeBurnMenubar/Views/HeroSection.swift b/mac/Sources/CodeBurnMenubar/Views/HeroSection.swift index 3a797e9..50d07ee 100644 --- a/mac/Sources/CodeBurnMenubar/Views/HeroSection.swift +++ b/mac/Sources/CodeBurnMenubar/Views/HeroSection.swift @@ -55,7 +55,8 @@ struct HeroSection: View { if store.selectedPeriod == .today, store.dailyBudget > 0, - store.payload.current.cost >= store.dailyBudget { + let todayCost = store.todayPayload?.current.cost, + todayCost >= store.dailyBudget { HStack(spacing: 4) { Image(systemName: "exclamationmark.triangle.fill") .font(.system(size: 10))