mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-08 12:46:40 +08:00
Added resultVisible check to missed words command
This commit is contained in:
parent
2b059bbefa
commit
b376ebf95e
1 changed files with 6 additions and 4 deletions
|
@ -627,10 +627,12 @@ let commands = {
|
|||
id: "practiceMissedWords",
|
||||
display: "Practice missed words",
|
||||
exec: () => {
|
||||
if (Object.keys(missedWords).length > 0) {
|
||||
initPractiseMissedWords();
|
||||
} else {
|
||||
showNotification("You haven't missed any words.", 2000);
|
||||
if (resultVisible) {
|
||||
if (Object.keys(missedWords).length > 0) {
|
||||
initPractiseMissedWords();
|
||||
} else {
|
||||
showNotification("You haven't missed any words.", 2000);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue