Fixed Bug: 'custom' used to appear two times under highest wpm value in account stats (#1640) by tricarbonate

This commit is contained in:
Tricarbonate 2021-07-19 12:57:11 -04:00 committed by GitHub
parent a3d89c4357
commit 0996fbe7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -657,7 +657,10 @@ export function update() {
? ",<br> " + (result.punctuation ? "&" : "") + "with numbers"
: "";
topWpm = result.wpm;
topMode = result.mode + " " + result.mode2 + puncsctring + numbsctring;
if (result.mode == "custom") topMode = result.mode;
else
topMode =
result.mode + " " + result.mode2 + puncsctring + numbsctring;
}
totalWpm += result.wpm;