From 0ca2384695a76b2425c2c9747242d7f1ec1a327b Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 9 Jul 2020 18:29:01 +0100 Subject: [PATCH] only checking keypress stats if mode is time --- functions/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/functions/index.js b/functions/index.js index e09bd276f..6a9bde47f 100644 --- a/functions/index.js +++ b/functions/index.js @@ -434,7 +434,11 @@ exports.testCompleted = functions.https.onCall((request, response) => { //check keyspacing and duration here if (!verified) { - if (keySpacing !== null && keyDuration !== null) { + if ( + keySpacing !== null && + keyDuration !== null && + obj.mode === "time" + ) { if ( keySpacing.sd < 15 || keyDuration.sd < 15 ||