(input: QuestionReply)
| 90 | } |
| 91 | |
| 92 | const beginReply = async (input: QuestionReply) => { |
| 93 | setState((prev) => questionSetSubmitting(prev, true)) |
| 94 | |
| 95 | try { |
| 96 | await props.onReply(input) |
| 97 | } catch { |
| 98 | setState((prev) => questionSetSubmitting(prev, false)) |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | const beginReject = async (input: QuestionReject) => { |
| 103 | setState((prev) => questionSetSubmitting(prev, true)) |
no test coverage detected