Skip to content

Commit

Permalink
[Feat/#59] 챌린지 데이터 전송
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoe0929 committed Jun 25, 2024
1 parent cf28d68 commit decfe23
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,15 @@ final class ChallengeViewModel: ObservableObject {
}
}
}
} else {
for index in 0..<days {
if statuses[index] == "NONE" {
if let newDate = calendar.date(byAdding: .day, value: index, to: start) {
let formattedDate = dateFormatter.string(from: newDate)
dates.append(formattedDate)
}
}
}
}

return dates
Expand Down

0 comments on commit decfe23

Please sign in to comment.