fix: update date comparison logic in isChoreCompletedToday function
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m9s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m9s
This commit is contained in:
@@ -225,7 +225,7 @@ const triggerTask = async (task: ChildTask) => {
|
||||
function isChoreCompletedToday(item: ChildTask): boolean {
|
||||
if (item.pending_status !== 'approved' || !item.approved_at) return false
|
||||
const approvedDate = item.approved_at.substring(0, 10)
|
||||
const today = toLocalISODate(new Date())
|
||||
const today = new Date().toISOString().slice(0, 10)
|
||||
return approvedDate === today
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user