mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-01-31 11:02:07 +08:00
only checking custom text if the data is sent to the back end
This commit is contained in:
parent
d08cfd45dc
commit
774a0124fa
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue