fixed dissapearing input

This commit is contained in:
Jack 2021-09-23 14:58:54 +01:00
parent fcbfbeb893
commit cc1ccf6d9a

View file

@ -304,7 +304,13 @@ list.updateName = new SimplePopup(
() => {
const user = firebase.auth().currentUser;
if (user.providerData[0].providerId === "google.com") {
eval(`this.inputs.shift()`);
eval(`this.inputs = [
{
placeholder: "New name",
type: "text",
initVal: "",
},
]`);
eval(`this.buttonText = "Reauthenticate to update"`);
}
}