Skip to content

Commit

Permalink
fix: missing spinner when loading the account page
Browse files Browse the repository at this point in the history
  • Loading branch information
Miodec committed Feb 8, 2024
1 parent d543459 commit 09c91f5
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions frontend/src/ts/pages/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
//
Expand Down

0 comments on commit 09c91f5

Please sign in to comment.