(e, id)
| 55 | }; |
| 56 | |
| 57 | const updateTodo = async (e, id) => { |
| 58 | e.stopPropagation(); |
| 59 | setCommandOutput("Command in progress"); |
| 60 | if (todos[id].completed === true) { |
| 61 | setCommandOutput(await APIHelper.markIncomplete(todos[id].title)); |
| 62 | } |
| 63 | else { |
| 64 | setCommandOutput(await APIHelper.markComplete(todos[id].title)); |
| 65 | } |
| 66 | const todoList = await APIHelper.getAllTodos(); |
| 67 | setTodos(todoList); |
| 68 | |
| 69 | }; |
| 70 | |
| 71 | return ( |
| 72 | <div className="App"> |
nothing calls this directly
no outgoing calls
no test coverage detected