in frontend/src/store/index.js [88:97]
updateQuestion(state, question) {
console.log('store::updateQuestion')
for (let i in state.questions) {
if (state.questions[i].rangeKey === question.rangeKey) {
state.questions[i].answers = question.answers
state.questions[i].avgScore = question.avgScore
console.log('Updated question: ', state.questions[i].rangeKey)
}
}
}