disabled result saving when practicing missed or slow words

This commit is contained in:
Miodec 2023-05-17 22:03:52 +02:00
parent 0f7ed78d5b
commit d23d3ccf89

View file

@ -1227,6 +1227,10 @@ async function saveResult(
completedEvent: CompletedEvent,
isRetrying: boolean
): Promise<void> {
if (PractiseWords.before.mode !== null) {
return;
}
if (!TestState.savingEnabled) {
Notifications.add("Result not saved: disabled by user", -1, {
duration: 3,