diff --git a/frontend/src/ts/test/test-stats.ts b/frontend/src/ts/test/test-stats.ts index ab39a0151..38924e21c 100644 --- a/frontend/src/ts/test/test-stats.ts +++ b/frontend/src/ts/test/test-stats.ts @@ -7,7 +7,6 @@ import * as TestState from "./test-state"; import * as Numbers from "@monkeytype/util/numbers"; import { CompletedEvent, IncompleteTest } from "@monkeytype/schemas/results"; import { isFunboxActiveWithProperty } from "./funbox/list"; -import * as CustomText from "./custom-text"; type CharCount = { spaces: number; @@ -344,11 +343,7 @@ function countChars(): CharCount { } correctChars += toAdd.correct; incorrectChars += toAdd.incorrect; - if ( - i === inputWords.length - 1 && - (Config.mode === "time" || - (Config.mode === "custom" && CustomText.getLimit().mode === "time")) - ) { + if (i === inputWords.length - 1) { //last word - check if it was all correct - add to correct word chars if (toAdd.incorrect === 0) correctWordChars += toAdd.correct; } else {