Merge pull request #69 from hoborm/bugfix/deleted-task-view-no-update

Fix chore list view doesn't update when chore is deleted.
This commit is contained in:
Mohamad Tarbin
2026-03-30 01:09:48 -04:00
committed by GitHub

View File

@@ -259,6 +259,7 @@ export const useChoreActions = ({
c => c.id !== chore.id, c => c.id !== chore.id,
) )
setChores(newChores) setChores(newChores)
updateChoreInState(chore.id, 'deleted')
setFilteredChores(newFilteredChores) setFilteredChores(newFilteredChores)
showSuccess({ showSuccess({
title: 'Task Deleted', title: 'Task Deleted',