mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-27 02:21:27 +08:00
chore: move result code to result file
This commit is contained in:
parent
5f50628110
commit
4fae28c0f6
2 changed files with 2 additions and 2 deletions
|
|
@ -47,6 +47,7 @@ import { z } from "zod";
|
|||
import * as TestState from "./test-state";
|
||||
import { blurInputElement } from "../input/input-element";
|
||||
import * as ConnectionState from "../states/connection";
|
||||
import { currentQuote } from "./test-words";
|
||||
|
||||
let result: CompletedEvent;
|
||||
let maxChartVal: number;
|
||||
|
|
@ -1075,6 +1076,7 @@ export async function update(
|
|||
$("main #result #rateQuoteButton").addClass("hidden");
|
||||
$("main #result #reportQuoteButton").addClass("hidden");
|
||||
} else {
|
||||
updateRateQuote(currentQuote);
|
||||
$("main #result #reportQuoteButton").removeClass("hidden");
|
||||
}
|
||||
$("main #result .stats .dailyLeaderboard").addClass("hidden");
|
||||
|
|
|
|||
|
|
@ -1175,8 +1175,6 @@ export async function finish(difficultyFailed = false): Promise<void> {
|
|||
|
||||
completedEvent.uid = user.uid;
|
||||
|
||||
Result.updateRateQuote(TestWords.currentQuote);
|
||||
|
||||
if (!completedEvent.bailedOut) {
|
||||
const challenge = ChallengeContoller.verify(completedEvent);
|
||||
if (challenge !== null) completedEvent.challenge = challenge;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue