From 25f6a938a4da42a3713b979a39300a3f240685ba Mon Sep 17 00:00:00 2001 From: Miodec Date: Mon, 8 Mar 2021 04:28:33 +0000 Subject: [PATCH] checking consistency if wpm above 100 --- functions/index.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/functions/index.js b/functions/index.js index 4a23c5584..ee558c189 100644 --- a/functions/index.js +++ b/functions/index.js @@ -870,11 +870,7 @@ function validateResult(result) { if (result.chartData.wpm.filter((w) => w > 400).length > 0) return false; } - if ( - (result.funbox === undefined || result.funbox === "none") && - result.consistency < 10 - ) - return false; + if (result.wpm > 100 && result.consistency < 10) return false; return true; }