only checking keypress stats if mode is time

This commit is contained in:
Jack 2020-07-09 18:29:01 +01:00
parent b109c9ec38
commit 0ca2384695

View file

@ -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 ||