From 9c11bd2658bea11afccca8f2713b402c80cd80e4 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Mon, 31 Jan 2022 08:39:41 +0000 Subject: [PATCH] Code order for aesthetics --- functions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;