Fix inability to save deck options when FSRS not enabled

This commit is contained in:
Damien Elmes 2023-11-27 13:22:35 +10:00
parent 123474c455
commit 7252dd56b6

View file

@ -61,7 +61,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
async function save(mode: UpdateDeckConfigsMode): Promise<void> {
await commitEditing();
if (!get(state.fsrs)) {
if (mode === UpdateDeckConfigsMode.COMPUTE_ALL_WEIGHTS && !get(state.fsrs)) {
alert(tr.deckConfigFsrsMustBeEnabled());
return;
}