mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-09 15:15:58 +08:00
fix(account page): tidy up highest wpm description (@cosmatevs) (#6329)
### Description Account page: * remove unnecessary &  * build punctuation and number strings only if they're going to be used ### Checks - [x] Check if any open issues are related to this PR; if so, be sure to tag them below. - [x] Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info) - [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title.
This commit is contained in:
parent
823e9e0685
commit
b375636c99
1 changed files with 5 additions and 6 deletions
|
@ -645,13 +645,12 @@ async function fillContent(): Promise<void> {
|
|||
});
|
||||
|
||||
if (result.wpm > topWpm) {
|
||||
const puncsctring = result.punctuation ? ",<br>with punctuation" : "";
|
||||
const numbsctring = result.numbers
|
||||
? ",<br> " + (result.punctuation ? "&" : "") + "with numbers"
|
||||
: "";
|
||||
topWpm = result.wpm;
|
||||
if (result.mode === "custom") topMode = result.mode;
|
||||
else {
|
||||
if (result.mode === "custom") {
|
||||
topMode = result.mode;
|
||||
} else {
|
||||
const puncsctring = result.punctuation ? ",<br>with punctuation" : "";
|
||||
const numbsctring = result.numbers ? ",<br>with numbers" : "";
|
||||
topMode = result.mode + " " + result.mode2 + puncsctring + numbsctring;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue