mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 19:32:26 +08:00
chore: reorder
This commit is contained in:
parent
4fae28c0f6
commit
11c2bff300
1 changed files with 6 additions and 6 deletions
|
|
@ -1152,12 +1152,6 @@ export async function finish(difficultyFailed = false): Promise<void> {
|
|||
dontSave,
|
||||
);
|
||||
|
||||
if (completedEvent.testDuration > 122) {
|
||||
completedEvent.chartData = "toolong";
|
||||
completedEvent.keySpacing = "toolong";
|
||||
completedEvent.keyDuration = "toolong";
|
||||
}
|
||||
|
||||
if (dontSave) {
|
||||
void AnalyticsController.log("testCompletedInvalid");
|
||||
return;
|
||||
|
|
@ -1175,6 +1169,12 @@ export async function finish(difficultyFailed = false): Promise<void> {
|
|||
|
||||
completedEvent.uid = user.uid;
|
||||
|
||||
if (completedEvent.testDuration > 122) {
|
||||
completedEvent.chartData = "toolong";
|
||||
completedEvent.keySpacing = "toolong";
|
||||
completedEvent.keyDuration = "toolong";
|
||||
}
|
||||
|
||||
if (!completedEvent.bailedOut) {
|
||||
const challenge = ChallengeContoller.verify(completedEvent);
|
||||
if (challenge !== null) completedEvent.challenge = challenge;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue