Skip to content

Commit 43fb700

Browse files
committed
Make default answer value null
1 parent 54bb8ec commit 43fb700

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/models/QuestionModel.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class LinkOption {
6969
export default class QuestionModel {
7070
constructor(options) {
7171
this.id = null
72-
this.answer = ''
72+
this.answer = null
7373
this.answered = false
7474
this.index = 0
7575
this.options = []
@@ -123,7 +123,6 @@ export default class QuestionModel {
123123
}
124124

125125
setAnswer(answer) {
126-
console.log(answer)
127126
if (this.type === QuestionType.Number && answer !== '' && !isNaN(+answer)) {
128127
answer = +answer
129128
}

0 commit comments

Comments
 (0)