(complete)
| 38 | } |
| 39 | |
| 40 | function updateCompleted(complete) { |
| 41 | setCompleted(prevListArray => { |
| 42 | return [...prevListArray, {id: prevListArray.length, task: complete}]; |
| 43 | }); |
| 44 | } |
| 45 | |
| 46 | function clearCompleted() { |
| 47 | setCompleted(() => { |
nothing calls this directly
no outgoing calls
no test coverage detected