mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-26 15:54:35 +08:00
fix: missing spinner when loading the account page
This commit is contained in:
parent
d54345937f
commit
09c91f5ad0
1 changed files with 10 additions and 11 deletions
|
@ -1342,17 +1342,16 @@ export const page = new Page(
|
|||
$(".pageAccount .preloader").removeClass("hidden");
|
||||
}
|
||||
|
||||
await update();
|
||||
await Misc.sleep(0);
|
||||
void updateChartColors();
|
||||
$(".pageAccount .content p.accountVerificatinNotice").remove();
|
||||
if (Auth?.currentUser?.emailVerified === false) {
|
||||
$(".pageAccount .content").prepend(
|
||||
`<p class="accountVerificatinNotice" style="text-align:center">Your account is not verified - <button class="sendVerificationEmail">send the verification email again</button>`
|
||||
);
|
||||
}
|
||||
|
||||
ResultBatches.showOrHideIfNeeded();
|
||||
void update().then(() => {
|
||||
void updateChartColors();
|
||||
$(".pageAccount .content p.accountVerificatinNotice").remove();
|
||||
if (Auth?.currentUser?.emailVerified === false) {
|
||||
$(".pageAccount .content").prepend(
|
||||
`<p class="accountVerificatinNotice" style="text-align:center">Your account is not verified - <button class="sendVerificationEmail">send the verification email again</button>`
|
||||
);
|
||||
}
|
||||
ResultBatches.showOrHideIfNeeded();
|
||||
});
|
||||
},
|
||||
async () => {
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue