diff --git a/functions/index.js b/functions/index.js index df23ca7..14fad52 100644 --- a/functions/index.js +++ b/functions/index.js @@ -555,12 +555,12 @@ exports.processAnswer = functions.https.onCall((data, context) => { currentVocabId: currentVocab, moreAnswers: false, nextPrompt: null, + numberOfAnswers: progressDoc.data().showNumberOfAnswers === true ? 0 : null, progress: docData.progress, totalQuestions: docData.questions.length, totalCorrect: docData.correct.length, totalIncorrect: docData.incorrect.length, typo: false, - numberOfAnswers: progressDoc.data().showNumberOfAnswers === true ? 0 : null, } docData.typo = false;