diff --git a/Application/Sources/Scene/MealDetail/MealDetailViewModel.swift b/Application/Sources/Scene/MealDetail/MealDetailViewModel.swift index 4377d14f..b1c5cf4f 100644 --- a/Application/Sources/Scene/MealDetail/MealDetailViewModel.swift +++ b/Application/Sources/Scene/MealDetail/MealDetailViewModel.swift @@ -27,7 +27,7 @@ class MealDetailViewModel: ObservableObject { private func calculateDateToShowData(allMenu: [MealMenuPerDayEntity]) -> Int { let today = Calendar.current.startOfDay(for: Date()) return allMenu.firstIndex { - let day = $0.date.filter { Int(String($0)) != nil }[1...] + let day = $0.date.split(separator: "월")[1].filter { Int(String($0)) != nil } return Int(String(day)) ?? 0 >= Int(today.toString(format: "d")) ?? 0 } ?? 0 }