From fdfe038eeb26bfaf2623d5b5182d683cf683c69b Mon Sep 17 00:00:00 2001 From: Xylight Date: Fri, 5 Jul 2024 12:22:56 -0700 Subject: [PATCH] fix: -1 account issue --- src/lib/components/ui/sidebar/ProfileButton.svelte | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) }