mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-28 09:52:36 +08:00
fixed new user check
This commit is contained in:
parent
32f1954176
commit
3d7692c560
1 changed files with 1 additions and 1 deletions
|
|
@ -449,7 +449,7 @@ export async function signInWithGoogle() {
|
|||
Notifications.add("Failed to sign in with Google: " + e.message, -1);
|
||||
$(".pageLogin .preloader").addClass("hidden");
|
||||
$(".pageLogin .button").removeClass("disabled");
|
||||
if (signedInUser?.user) {
|
||||
if (signedInUser?.additionalUserInfo?.isNewUser) {
|
||||
await Ape.users.delete();
|
||||
await signedInUser.user.delete();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue