(id: string)
| 25 | const [type, setType] = useState(problem.type); |
| 26 | const [notionDocId, setNotionDocId] = useState(problem.notionDocId); |
| 27 | function handleEdit(id: string) { |
| 28 | if (isEditing) { |
| 29 | updateProblem(problem.id, { id, title, description, type, notionDocId }); |
| 30 | return setIsEditing(false); |
| 31 | } |
| 32 | setIsEditing(true); |
| 33 | } |
| 34 | function handleDiscardButton() { |
| 35 | setTitle(problem.title); |
| 36 | setDescription(problem.description); |
no test coverage detected