Fix alert not appearing when FSRS parameters input is focused (#3053)

This commit is contained in:
Abdo 2024-03-05 09:43:57 +03:00 committed by GitHub
parent fa771991ca
commit 631088cdca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,7 +118,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
});
if (
$config.fsrsWeights.length &&
$config.fsrsWeights.every((n, i) => n === resp.weights[i])
$config.fsrsWeights.every(
(n, i) => n.toFixed(4) === resp.weights[i].toFixed(4),
)
) {
alert(tr.deckConfigFsrsParamsOptimal());
}