Skip to content

Commit

Permalink
๐Ÿ”€ :: (#574) ๊ธ‰์‹ ํฌ์ปค์‹ฑ ๋ฒ„๊ทธ ์ˆ˜์ •
Browse files Browse the repository at this point in the history
  • Loading branch information
BJCHO0501 authored Nov 8, 2023
2 parents 015855e + 14ad419 commit f8a8563
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f8a8563

Please sign in to comment.