hopefully fix issue where voting is filled in with missing when its time to vote
This commit is contained in:
@@ -41,7 +41,7 @@ class MoodEntryFunctions {
|
||||
var startOfMonth = date.startOfMonth
|
||||
startOfMonth = Calendar.current.date(byAdding: .hour, value: 9, to: startOfMonth)!
|
||||
let lastMissingDate = mutableEntries.first?.forDate ?? date.endOfMonth
|
||||
var missingDates = Date.dates(from: startOfMonth, to: lastMissingDate)
|
||||
var missingDates = Date.dates(from: startOfMonth, toDate: lastMissingDate, includingToDate: true)
|
||||
missingDates = missingDates.dropLast()
|
||||
|
||||
for date in missingDates {
|
||||
|
||||
Reference in New Issue
Block a user