()
| 143 | } |
| 144 | |
| 145 | const select = () => { |
| 146 | const cur = state() |
| 147 | const next = questionSelect(cur, props.request) |
| 148 | if (next.state !== cur) { |
| 149 | setState(next.state) |
| 150 | } |
| 151 | |
| 152 | if (!next.reply) { |
| 153 | return |
| 154 | } |
| 155 | |
| 156 | void beginReply(next.reply) |
| 157 | } |
| 158 | |
| 159 | const submit = () => { |
| 160 | void beginReply(questionSubmit(props.request, state())) |
no test coverage detected