mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-09 23:25:53 +08:00
revered bad replace
This commit is contained in:
parent
d3c8aff456
commit
0cf37b34a7
2 changed files with 13 additions and 13 deletions
|
@ -1298,20 +1298,20 @@ exports.testCompleted = functions.https.onRequest(async (request, response) => {
|
|||
(obj.mode === "words" && obj.mode2 < 10 && obj.mode2 > 0) ||
|
||||
(obj.mode === "words" && obj.mode2 == 0 && obj.testDuration < 15) ||
|
||||
(obj.mode === "custom" &&
|
||||
obj.CustomText !== undefined &&
|
||||
!obj.CustomText.isWordRandom &&
|
||||
!obj.CustomText.isTimeRandom &&
|
||||
obj.CustomText.textLen < 10) ||
|
||||
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.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)
|
||||
obj.customText !== undefined &&
|
||||
!obj.customText.isWordRandom &&
|
||||
obj.customText.isTimeRandom &&
|
||||
obj.customText.time < 15)
|
||||
) {
|
||||
response
|
||||
.status(200)
|
||||
|
|
|
@ -2057,7 +2057,7 @@ function showResult(difficultyFailed = false) {
|
|||
funbox: activeFunBox,
|
||||
bailedOut: bailout,
|
||||
chartData: chartData,
|
||||
CustomText: cdata,
|
||||
customText: cdata,
|
||||
};
|
||||
|
||||
if (config.mode !== "custom") {
|
||||
|
|
Loading…
Add table
Reference in a new issue