Skip to content

Commit 79e006c

Browse files
committed
hide email verification banner on wizard pages
1 parent 7bb11a3 commit 79e006c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/components/alerts/emailVerificationBanner.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
import { user } from '$lib/stores/user';
66
import SendVerificationEmailModal from '../account/sendVerificationEmailModal.svelte';
77
import { page } from '$app/stores';
8+
import { wizard, isNewWizardStatusOpen } from '$lib/stores/wizard';
89
910
const hasUser = $derived(!!$user);
1011
const needsEmailVerification = $derived(hasUser && !$user.emailVerification);
1112
const notOnOnboarding = $derived(!$page.route.id.includes('/onboarding'));
12-
const shouldShowEmailBanner = $derived(hasUser && needsEmailVerification && notOnOnboarding);
13+
const notOnWizard = $derived(!$wizard.show && !$isNewWizardStatusOpen);
14+
const shouldShowEmailBanner = $derived(hasUser && needsEmailVerification && notOnOnboarding && notOnWizard);
1315
1416
let showSendVerification = $state(false);
1517
</script>

0 commit comments

Comments
 (0)