Skip to content

Commit d9120b4

Browse files
Update all-time-stats.ts (monkeytypegame#3976)
These 2 if statements can be combined
1 parent 9c58ec2 commit d9120b4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

frontend/src/ts/account/all-time-stats.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ export function update(): void {
2828
$(".pageAccount .globalTestsStarted .val").text(
2929
snapshot.typingStats.startedTests as number
3030
);
31-
}
3231

33-
if (snapshot.typingStats !== undefined) {
3432
$(".pageAccount .globalTestsCompleted .val").text(
3533
snapshot.typingStats.completedTests as number
3634
);

0 commit comments

Comments
 (0)