This commit is contained in:
Luc Mcgrady 2025-06-03 00:59:51 +01:00
parent 1cfe9d82d0
commit 71d6ed2748
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
2 changed files with 3 additions and 3 deletions

View file

@ -110,9 +110,9 @@ impl DeckConfig {
/// Retrieve the FSRS 6.0 params, falling back on 5.0 or 4.x ones.
pub fn fsrs_params(&self) -> &Vec<f32> {
if self.inner.fsrs_params_6.len() > 0 {
if !self.inner.fsrs_params_6.is_empty() {
&self.inner.fsrs_params_6
} else if self.inner.fsrs_params_5.len() > 0 {
} else if !self.inner.fsrs_params_5.is_empty() {
&self.inner.fsrs_params_5
} else {
&self.inner.fsrs_params_4

View file

@ -33,7 +33,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
function update(e: Event): void {
const input = e.target as HTMLInputElement;
let newValue = input.value
const newValue = input.value
.replace(/ /g, "")
.split(",")
.filter((e) => e)