mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-20 15:26:15 +08:00
changing page after google sign in
This commit is contained in:
parent
ddf875d72b
commit
a99cf684d9
|
@ -249,6 +249,7 @@ export async function signInWithGoogle() {
|
|||
$(".pageLogin .button").removeClass("disabled");
|
||||
$(".pageLogin .preloader").addClass("hidden");
|
||||
await loadUser(signedInUser.user);
|
||||
UI.changePage("account");
|
||||
if (TestLogic.notSignedInLastResult !== null) {
|
||||
TestLogic.setNotSignedInUid(signedInUser.user.uid);
|
||||
axiosInstance
|
||||
|
@ -264,7 +265,8 @@ export async function signInWithGoogle() {
|
|||
}
|
||||
}
|
||||
} else {
|
||||
loadUser(signedInUser.user);
|
||||
await loadUser(signedInUser.user);
|
||||
UI.changePage("account");
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
|
|
Loading…
Reference in a new issue