diff --git a/src/utils/Fetcher.jsx b/src/utils/Fetcher.jsx index 41d425a..d9594c4 100644 --- a/src/utils/Fetcher.jsx +++ b/src/utils/Fetcher.jsx @@ -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 }), }) }