mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-15 19:19:51 +08:00
fix: catch errors when google sign up failed
This commit is contained in:
parent
57ccfbb985
commit
ac33789bd8
1 changed files with 3 additions and 1 deletions
|
@ -118,7 +118,9 @@ async function apply(): Promise<void> {
|
|||
LoginPage.enableSignUpButton();
|
||||
if (signedInUser && getAdditionalUserInfo(signedInUser)?.isNewUser) {
|
||||
await Ape.users.delete();
|
||||
await signedInUser.user.delete();
|
||||
await signedInUser?.user.delete().catch(() => {
|
||||
//user might be deleted already by the server
|
||||
});
|
||||
}
|
||||
AccountController.signOut();
|
||||
signedInUser = undefined;
|
||||
|
|
Loading…
Add table
Reference in a new issue