mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 21:09:18 +08:00
fixed dissapearing input
This commit is contained in:
parent
fcbfbeb893
commit
cc1ccf6d9a
1 changed files with 7 additions and 1 deletions
|
@ -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"`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue