diff --git a/apps/dashboard/src/lib/components/Buttons/Logout/index.svelte b/apps/dashboard/src/lib/components/Buttons/Logout/index.svelte index 429b72bb..3fac6d7d 100644 --- a/apps/dashboard/src/lib/components/Buttons/Logout/index.svelte +++ b/apps/dashboard/src/lib/components/Buttons/Logout/index.svelte @@ -10,7 +10,10 @@ async function logout() { const { error } = await supabase.auth.signOut(); - console.error('Error logging out: ', error); + + if (error) { + console.error('Error logging out: ', error); + } currentOrg.set(defaultCurrentOrgState); orgs.set([]);