Skip to content

Commit

Permalink
Close email verification notification on navigate
Browse files Browse the repository at this point in the history
  • Loading branch information
myieye committed Oct 31, 2023
1 parent ad8f7d1 commit c32d988
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/src/lib/email/EmailVerificationStatus.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import { Button } from '$lib/forms';
import { onDestroy } from 'svelte';
import { Duration } from '$lib/util/time';
import { onNavigate } from '$app/navigation';
export let user: LexAuthUser;
Expand Down Expand Up @@ -45,6 +46,11 @@
emailResultUnsubscriber();
requestedEmailUnsubscriber();
});
onNavigate(() => {
emailResult.set(null);
requestedEmail.set(null);
});
</script>

{#if $requestedEmail}
Expand Down

0 comments on commit c32d988

Please sign in to comment.