fix: update onAction handler to accept extra data in ChoreCard component

This commit is contained in:
Mo Tarbin
2025-12-02 18:42:16 -05:00
parent 5bfd340176
commit 1123fb3ca6

View File

@@ -995,7 +995,9 @@ const ChoreCard = ({
onCompleteWithPastDate={() =>
onAction('completeWithPastDate', chore)
}
onAction={type => onAction(type, chore)}
onAction={(type, chore, extraData) =>
onAction(type, chore, extraData)
}
onChangeAssignee={() => onAction('changeAssignee', chore)}
onChangeDueDate={() => onAction('changeDueDate', chore)}
onWriteNFC={() => onAction('writeNFC', chore)}