fix: google auth accounts not being able to change name

closes #4736
This commit is contained in:
Miodec 2023-10-23 14:58:14 +01:00
parent 45cd4378bc
commit 2eb9f1a66e

View file

@ -222,7 +222,16 @@ class SimplePopup {
}
});
if (vals.some((v) => v === undefined || v === "")) {
const inputsWithCurrentValue = [];
for (let i = 0; i < this.inputs.length; i++) {
inputsWithCurrentValue.push({ ...this.inputs[i], currentValue: vals[i] });
}
if (
inputsWithCurrentValue
.filter((i) => !i.hidden)
.some((v) => v.currentValue === undefined || v.currentValue === "")
) {
Notifications.add("Please fill in all fields", 0);
return;
}