diff --git a/src/app/(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx b/src/app/(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx index 55f4b0a5..9da6bfa3 100644 --- a/src/app/(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx +++ b/src/app/(dynamic-pages)/(authenticated-pages)/dashboard/page.tsx @@ -41,10 +41,7 @@ export default function DashboardPage() { > {initialOrgRedirectMutation.isLoading && ( Loading your dashboard... diff --git a/src/app/(dynamic-pages)/(login-pages)/login/Login.tsx b/src/app/(dynamic-pages)/(login-pages)/login/Login.tsx index d59707d8..836de502 100644 --- a/src/app/(dynamic-pages)/(login-pages)/login/Login.tsx +++ b/src/app/(dynamic-pages)/(login-pages)/login/Login.tsx @@ -54,6 +54,7 @@ export function Login({ onError: (errorPayload) => { console.error(errorPayload); }, + dismissOnSuccess: true, }); @@ -82,6 +83,7 @@ export function Login({ } }, successMessage: 'A magic link has been sent to your email!', + dismissOnSuccess: true, onSuccess: () => { setEmailSentSuccessMessage('A magic link has been sent to your email!'); }, @@ -109,6 +111,7 @@ export function Login({ } }, successMessage: 'Logged in!', + dismissOnSuccess: true, }, ); const providerMutation = useSAToastMutation( @@ -122,6 +125,7 @@ export function Login({ onSuccess: (payload) => { window.location.href = payload.data.url; }, + dismissOnSuccess: true, }, ); return (