Update all-time-stats.ts (#3976)

These 2 if statements can be combined
This commit is contained in:
Rephael Congmon 2023-02-05 19:30:33 -05:00 committed by GitHub
parent 9c58ec2808
commit d9120b47c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,9 +28,7 @@ export function update(): void {
$(".pageAccount .globalTestsStarted .val").text(
snapshot.typingStats.startedTests as number
);
}
if (snapshot.typingStats !== undefined) {
$(".pageAccount .globalTestsCompleted .val").text(
snapshot.typingStats.completedTests as number
);