Skip to content
Snippets Groups Projects
Commit 64a739b9 authored by AnneliKlamas's avatar AnneliKlamas
Browse files

#46 added empty question validation

parent 7f9c55b0
No related branches found
No related tags found
1 merge request!48feat: Add support for the template dropdowns #46
......@@ -17,7 +17,7 @@ public class QuestionHandler {
public Optional<Question> handleQuestion(String text, List<String> dropdownValues) {
Optional<Question> question = Optional.empty();
if (!state.getAnswerOptions().isEmpty()) {
if (!state.getName().isEmpty()) {
var validationHandler = new QuestionValidationHandler(state);
validationHandler.validateQuestion();
question = Optional.of(state.createQuestion());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment