diff --git a/CONTRIBUTORS b/CONTRIBUTORS index c053b30fc..b165b318a 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -140,6 +140,7 @@ Michael Winkworth Mateusz Wojewoda Jarrett Ye Sam Waechter +Michael Eliachevitch ******************** diff --git a/ts/deck-options/FsrsOptions.svelte b/ts/deck-options/FsrsOptions.svelte index fe968f972..c40154c0c 100644 --- a/ts/deck-options/FsrsOptions.svelte +++ b/ts/deck-options/FsrsOptions.svelte @@ -166,7 +166,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html if (!val || !val.total) { return ""; } - let pct = ((val.current / val.total) * 100).toFixed(2); + let pct = ((val.current / val.total) * 100).toFixed(1); pct = `${pct}%`; if (val instanceof ComputeRetentionProgress) { return pct; @@ -181,7 +181,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html if (!val || !val.total) { return ""; } - const pct = ((val.current / val.total) * 100).toFixed(2); + const pct = ((val.current / val.total) * 100).toFixed(0); return `${pct}%`; }