Fix logout race condition

This commit is contained in:
Rory Powell 2022-11-11 11:26:36 +00:00
parent 816382f638
commit a5a8b96be1
1 changed files with 2 additions and 2 deletions

View File

@ -155,9 +155,9 @@ export function createAuthStore() {
await actions.getSelf()
},
logout: async () => {
setUser(null)
setPostLogout()
await API.logOut()
setPostLogout()
setUser(null)
await setInitInfo({})
},
updateSelf: async fields => {