diff --git a/composables/users.ts b/composables/users.ts index 103847f5..e4dce99c 100644 --- a/composables/users.ts +++ b/composables/users.ts @@ -68,10 +68,6 @@ if (process.client) { watch(currentUserId, async (id, oldId) => { // when sign in or switch account if (id) { - // initial load - if (!oldId) - return - if (id === currentUser.value?.account?.id) { // when sign in, the other tab will not have the user, idb is not reactive const newUser = users.value.find(user => user.account?.id === id)