diff --git a/src/lib/components/ui/sidebar/ProfileButton.svelte b/src/lib/components/ui/sidebar/ProfileButton.svelte index fa3f387e..08170434 100644 --- a/src/lib/components/ui/sidebar/ProfileButton.svelte +++ b/src/lib/components/ui/sidebar/ProfileButton.svelte @@ -24,9 +24,7 @@ on:click={async () => { switching = true - if ($profile?.id == prof.id) { - await setUserID(-1) - } else { + if ($profile?.id != prof.id) { await setUserID(prof.id) }