in frontend/src/store/index.js [58:74]
saveQuestion(state, question) {
console.log('store::saveQuestion:', question)
for (let i in state.questions) {
console.log(state.questions[i])
if (state.questions[i].rangeKey === question.rangeKey) {
console.log('Matched: ', question.rangeKey)
state.questions[i].answers = question.answers
state.questions[i].avgScore = question.avgScore
return
}
}
console.log('Not in store - adding')
state.questions.push(question)
},