1
0
Fork 0
mirror of synced 2024-06-13 16:05:06 +12:00

Fix logout race condition

This commit is contained in:
Rory Powell 2022-11-11 11:26:36 +00:00
parent 5b8c49cf3a
commit fbbc5f01b8

View file

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