diff --git a/PortfolioJournal/Views/Dashboard/DashboardView.swift b/PortfolioJournal/Views/Dashboard/DashboardView.swift index 8458253..e3ed19f 100644 --- a/PortfolioJournal/Views/Dashboard/DashboardView.swift +++ b/PortfolioJournal/Views/Dashboard/DashboardView.swift @@ -447,9 +447,16 @@ struct MonthlyCheckInCard: View { ) } + private var currentMonthLabel: String { + let formatter = DateFormatter() + formatter.dateFormat = "LLLL yyyy" + let effectiveMonth = MonthlyCheckInStore.effectiveMonth(for: Date(), relativeTo: Date()) + return formatter.string(from: effectiveMonth) + } + var body: some View { VStack(alignment: .leading, spacing: 12) { - Text("Monthly Check-in") + Text(currentMonthLabel) .font(.headline) Text("Keep a calm, deliberate rhythm. Update your sources and add a short note.")