Fix #100 Completing On time task not moved to archive until refresh
This commit is contained in:
parent
06519a0e5c
commit
96c4d7e903
1 changed files with 4 additions and 1 deletions
|
@ -244,7 +244,10 @@ const MyChores = () => {
|
|||
}
|
||||
return chore
|
||||
})
|
||||
if (event === 'archive') {
|
||||
if (
|
||||
event === 'archive' ||
|
||||
(event === 'completed' && updatedChore.frequencyType === 'once')
|
||||
) {
|
||||
newChores = newChores.filter(chore => chore.id !== updatedChore.id)
|
||||
newFilteredChores = newFilteredChores.filter(
|
||||
chore => chore.id !== updatedChore.id,
|
||||
|
|
Loading…
Add table
Reference in a new issue