fix: sync current account across tabs 2 (#816)

pull/823/head
Joaquín Sánchez 2023-01-06 10:34:18 +01:00 zatwierdzone przez GitHub
rodzic d8eec1ed5e
commit 573bf48eda
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -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)