mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-23 00:37:29 +08:00
Incement accuracy even for trailingComposeChars (#2062)
Co-authored-by: Aditya Pudipeddi <aditya.pudipeddi@postman.com>
This commit is contained in:
parent
462d70a03e
commit
4ba3324240
|
@ -398,6 +398,9 @@ function handleChar(char, charIndex) {
|
|||
char +
|
||||
TestLogic.input.current.substring(charIndex + 1);
|
||||
|
||||
MonkeyPower.addPower(thisCharCorrect);
|
||||
TestStats.incrementAccuracy(thisCharCorrect);
|
||||
|
||||
if (!thisCharCorrect && Misc.trailingComposeChars.test(resultingWord)) {
|
||||
TestLogic.input.current = resultingWord;
|
||||
TestUI.updateWordElement();
|
||||
|
@ -405,9 +408,6 @@ function handleChar(char, charIndex) {
|
|||
return;
|
||||
}
|
||||
|
||||
MonkeyPower.addPower(thisCharCorrect);
|
||||
TestStats.incrementAccuracy(thisCharCorrect);
|
||||
|
||||
if (!thisCharCorrect) {
|
||||
TestStats.incrementKeypressErrors();
|
||||
TestStats.pushMissedWord(TestLogic.words.getCurrent());
|
||||
|
|
Loading…
Reference in a new issue