mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2026-01-12 02:14:34 +08:00
setting the accuracy to 0 if its not a number
This commit is contained in:
parent
c838283c15
commit
647338cb61
1 changed files with 1 additions and 0 deletions
|
|
@ -1781,6 +1781,7 @@ function calculateStats() {
|
|||
(accuracyStats.correct + accuracyStats.incorrect)) *
|
||||
100
|
||||
);
|
||||
if (isNaN(acc)) acc = 0;
|
||||
return {
|
||||
wpm: isNaN(wpm) ? 0 : wpm,
|
||||
wpmRaw: isNaN(wpmraw) ? 0 : wpmraw,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue