Skip to content

Commit

Permalink
fix: google auth accounts not being able to change name
Browse files Browse the repository at this point in the history
closes #4736
  • Loading branch information
Miodec committed Oct 23, 2023
1 parent 45cd437 commit 2eb9f1a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion frontend/src/ts/popups/simple-popups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2eb9f1a

Please sign in to comment.