diff --git a/frontend/src/ts/pages/account.ts b/frontend/src/ts/pages/account.ts index 36be944a9..01d2ba3b9 100644 --- a/frontend/src/ts/pages/account.ts +++ b/frontend/src/ts/pages/account.ts @@ -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( - `
Your account is not verified - ` - ); - } - - ResultBatches.showOrHideIfNeeded(); + void update().then(() => { + void updateChartColors(); + $(".pageAccount .content p.accountVerificatinNotice").remove(); + if (Auth?.currentUser?.emailVerified === false) { + $(".pageAccount .content").prepend( + `
Your account is not verified - ` + ); + } + ResultBatches.showOrHideIfNeeded(); + }); }, async () => { //