diff --git a/components/user/UserPicker.vue b/components/user/UserPicker.vue index 37cfedd5..ab1b237b 100644 --- a/components/user/UserPicker.vue +++ b/components/user/UserPicker.vue @@ -6,7 +6,7 @@ const all = useUsers() const router = useRouter() const masto = useMasto() const switchUser = (user: UserLogin) => { - if (user.account.id === currentUser.value?.account.id) + if (!user.guest && !currentUser.value?.guest && user.account.id === currentUser.value?.account.id) router.push(getAccountRoute(user.account)) else masto.loginTo(user) @@ -21,7 +21,7 @@ const switchUser = (user: UserLogin) => { flex rounded cursor-pointer aria-label="Switch user" - :class="user.account.id === currentUser?.account.id ? '' : 'op25 grayscale'" + :class="user.account?.id === currentUser?.account?.id ? '' : 'op25 grayscale'" hover="filter-none op100" @click="switchUser(user)" > diff --git a/components/user/UserSignIn.vue b/components/user/UserSignIn.vue index b9ae3589..c42b7594 100644 --- a/components/user/UserSignIn.vue +++ b/components/user/UserSignIn.vue @@ -1,7 +1,8 @@