Skip to content

Commit

Permalink
fix: validation of boolean result
Browse files Browse the repository at this point in the history
  • Loading branch information
Numoy committed Jul 17, 2023
1 parent 0eff0f7 commit ea3bb50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/views/boolean_answer_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ class _BooleanAnswerViewState extends State<BooleanAnswerView> {
textAlign: TextAlign.center,
)
: widget.questionStep.content,
isValid: widget.questionStep.isOptional || _result != null,
isValid: widget.questionStep.isOptional ||
(_result != BooleanResult.NONE && _result != null),
child: Column(
children: [
Padding(
Expand Down

0 comments on commit ea3bb50

Please sign in to comment.