fix: sign out when only one user

This commit is contained in:
三咲智子 2022-11-29 13:43:06 +08:00
parent 22b4c4aaa5
commit f1f7462ec0
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E

View file

@ -75,6 +75,7 @@ export async function signout() {
clearUserDrafts()
clearUserFeatureFlags()
currentUserId.value = ''
// Remove the current user from the users
users.value.splice(index, 1)
}