Whether the selected option is "Other"
(&self)
| 163 | |
| 164 | /// Whether the selected option is "Other" |
| 165 | fn is_other_selected(&self) -> bool { |
| 166 | if let Some(q) = self.current_question() { |
| 167 | self.selected_option == q.options.len() |
| 168 | } else { |
| 169 | false |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | /// Build the answers JSON payload for submission |
| 174 | fn build_answers_payload(&self) -> serde_json::Value { |
no test coverage detected