mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
showing reserve errors, cancelling account creation
This commit is contained in:
parent
5f127f6485
commit
36fb369de1
1 changed files with 6 additions and 1 deletions
|
@ -147,7 +147,12 @@ function signUp() {
|
|||
.collection("users")
|
||||
.doc(usr.uid)
|
||||
.set({ name: nname }, { merge: true });
|
||||
CloudFunctions.reserveName({ name: nname, uid: usr.uid });
|
||||
CloudFunctions.reserveName({ name: nname, uid: usr.uid }).throw(
|
||||
(e) => {
|
||||
console.error("Could not reserve name " + e);
|
||||
throw "Could not reserve name";
|
||||
}
|
||||
);
|
||||
usr.sendEmailVerification();
|
||||
clearGlobalStats();
|
||||
Misc.showNotification("Account created", 2000);
|
||||
|
|
Loading…
Reference in a new issue