mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-16 19:49:48 +08:00
fix: unhandled exception when cancelling google sign in
This commit is contained in:
parent
949b61801c
commit
16f3da057d
1 changed files with 3 additions and 1 deletions
|
@ -46,7 +46,9 @@ async function hide(): Promise<void> {
|
|||
LoginPage.enableInputs();
|
||||
if (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