Skip to content

Commit

Permalink
#34c3: Fixed wrong storing of answers
Browse files Browse the repository at this point in the history
  • Loading branch information
cmllr committed Dec 28, 2017
1 parent f09bd37 commit 1755235
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions mixins/api.js
Expand Up @@ -81,12 +81,14 @@ export default {
addResult: function (instance) {
var tags = this.globals.mainInstance.tags // eslint-disable-line no-unused-vars
var answers = [] // eslint-disable-line no-unused-vars

this.globals.mainInstance.answered[0].answers.forEach(function (answer) {
if (answer.selected) {
answers.push(answer.id)
}
})
for (var i in this.globals.mainInstance.answered) {
var answer = this.globals.mainInstance.answered[i]
answer.answers.forEach(function (answer) {
if (answer.selected) {
answers.push(answer.id)
}
})
}
var tagsToSubmit = []
for (var tag in tags) {
var element = {
Expand Down

0 comments on commit 1755235

Please sign in to comment.