()
| 35 | const { toast } = useToast(); |
| 36 | |
| 37 | const handleCreateProblem = async () => { |
| 38 | const problem = await createProblem({ title, description, type, notionDocId }); |
| 39 | if (problem) { |
| 40 | newProblems.push(problem); |
| 41 | toast({ |
| 42 | title: "Added problem", |
| 43 | description: "Problem added", |
| 44 | }); |
| 45 | return; |
| 46 | } |
| 47 | |
| 48 | toast({ |
| 49 | title: "Couldn't add problem", |
| 50 | description: "Please try again later", |
| 51 | }); |
| 52 | }; |
| 53 | |
| 54 | return ( |
| 55 | <div> |
nothing calls this directly
no test coverage detected