diff --git a/functions/index.js b/functions/index.js index c55c239f7..c00fe345b 100644 --- a/functions/index.js +++ b/functions/index.js @@ -1300,14 +1300,17 @@ exports.testCompleted = functions.https.onRequest(async (request, response) => { (obj.mode === "time" && obj.mode2 < 15) || (obj.mode === "words" && obj.mode2 < 10) || (obj.mode === "custom" && + obj.customText !== undefined && !obj.customText.isWordRandom && !obj.customText.isTimeRandom && obj.customText.textLen < 10) || (obj.mode === "custom" && + obj.customText !== undefined && obj.customText.isWordRandom && !obj.customText.isTimeRandom && obj.customText.word < 10) || (obj.mode === "custom" && + obj.customText !== undefined && !obj.customText.isWordRandom && obj.customText.isTimeRandom && obj.customText.time < 15)