We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28ad5cf commit 6cc349bCopy full SHA for 6cc349b
src/models/QuestionModel.js
@@ -46,7 +46,9 @@ export class ChoiceOption {
46
}
47
48
choiceValue() {
49
- return this.value || this.label
+ // returns the value if it's anything other than the default (an empty string).
50
+ // returns label if the value has not been set.
51
+ return this.value !== '' ? this.value : this.label
52
53
54
toggle() {
0 commit comments