Skip to content

Commit 393b9df

Browse files
committed
Fix chart problems in custom mode
1 parent 5d169e9 commit 393b9df

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/src/ts/test/test-logic.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,13 @@ export async function finish(difficultyFailed = false): Promise<void> {
915915

916916
// stats
917917
const stats = TestStats.calculateFinalStats();
918-
if (stats.time % 1 !== 0 && Config.mode !== "time") {
918+
if (
919+
stats.time % 1 !== 0 &&
920+
!(
921+
Config.mode === "time" ||
922+
(Config.mode === "custom" && CustomText.getLimitMode() === "time")
923+
)
924+
) {
919925
TestStats.setLastSecondNotRound();
920926
}
921927

0 commit comments

Comments
 (0)