Added resultVisible check to missed words command

This commit is contained in:
decaf 2020-11-09 17:29:49 -06:00
parent 2b059bbefa
commit b376ebf95e

View file

@ -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);
}
}
},
},