refactor: Rename parameter in CompleteSubTask back to completedAt to match backend https://github.com/donetick/donetick/issues/224

This commit is contained in:
Mo Tarbin
2025-06-03 23:33:55 -04:00
parent 321250f30e
commit 6c1be53f86

View File

@@ -123,12 +123,12 @@ const MarkChoreComplete = (id, body, completedDate, performer) => {
})
}
const CompleteSubTask = (id, choreId, performedAt) => {
const CompleteSubTask = (id, choreId, completedAt) => {
var markChoreURL = `/chores/${choreId}/subtask`
return Fetch(markChoreURL, {
method: 'PUT',
headers: HEADERS(),
body: JSON.stringify({ performedAt, id, choreId }),
body: JSON.stringify({ completedAt, id, choreId }),
})
}