()
| 33 | |
| 34 | function handleUpdate() { |
| 35 | const asyncUpdate = async () => { |
| 36 | setIsUpdating(true); |
| 37 | await updateMCQ(mcq.id, { |
| 38 | id: mcq.id, |
| 39 | question, |
| 40 | options, |
| 41 | correctOption, |
| 42 | problemId: mcq.problemId, |
| 43 | }); |
| 44 | setIsUpdating(false); |
| 45 | }; |
| 46 | asyncUpdate(); |
| 47 | } |
| 48 |
no test coverage detected