diff --git a/Application/Sources/Scene/SelfStudyTeacher/SelfStudyTeacherViewModel.swift b/Application/Sources/Scene/SelfStudyTeacher/SelfStudyTeacherViewModel.swift index 38c6ecfa..6cdf5373 100644 --- a/Application/Sources/Scene/SelfStudyTeacher/SelfStudyTeacherViewModel.swift +++ b/Application/Sources/Scene/SelfStudyTeacher/SelfStudyTeacherViewModel.swift @@ -26,7 +26,7 @@ class SelfStudyTeacherViewModel: ObservableObject { private func calculateDateToShowData(allMenu: [TodaySelfStudyTeacherEntity]) -> 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 }