fix: account verification notice duplicating

This commit is contained in:
Miodec 2024-08-16 10:18:45 +02:00
parent 7ffb7ead0b
commit 210d1aed9c

View file

@ -1297,7 +1297,7 @@ export const page = new Page({
void update().then(() => {
void updateChartColors();
$(".pageAccount .content p.accountVerificatinNotice").remove();
$(".pageAccount .content .accountVerificatinNotice").remove();
if (Auth?.currentUser?.emailVerified === false) {
$(".pageAccount .content").prepend(
`<div class="accountVerificatinNotice"><i class="fas icon fa-exclamation-triangle"></i><p>Your email address is still not verified</p><button class="sendVerificationEmail">resend verification email</button></div>`