Skip to content

Commit

Permalink
πŸ”€ :: (#576) μžμŠ΅κ°λ…μ„ μƒλ‹˜ 포컀싱 였λ₯˜ μˆ˜μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
BJCHO0501 authored Nov 9, 2023
2 parents f8a8563 + 6dd0684 commit befe35c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit befe35c

Please sign in to comment.