Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-07-12 10:41:10 +02:00
parent 7c43e03b31
commit f730c9d1b5
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF
3 changed files with 7 additions and 7 deletions

View file

@ -91,9 +91,9 @@ export default {
const squashedAnswers = answers.map(answer => answer.text).join('; ')
answeredQuestionsArray.push({
'id': question.id,
'text': question.text,
'squashedAnswers': squashedAnswers,
id: question.id,
text: question.text,
squashedAnswers,
})
})
return answeredQuestionsArray

View file

@ -109,9 +109,9 @@ export default {
const optionsStatIndex = questionOptionsStats.findIndex(option => option.text === answer.text)
if (optionsStatIndex < 0) {
questionOptionsStats.push({
'text': answer.text,
'count': 1,
'percentage': 0,
text: answer.text,
count: 1,
percentage: 0,
})
} else {
questionOptionsStats[optionsStatIndex].count++

View file

@ -215,7 +215,7 @@ export default {
},
// Update Window-Title on title change
'form.title': function() {
'form.title'() {
SetWindowTitle(this.formTitle)
},
},