update-token-fix
This commit is contained in:
parent
aa8d5973ee
commit
150903ecbd
|
@ -225,9 +225,12 @@ export const SessionProvider = (props: {
|
|||
const appdata = session()?.user.app_data
|
||||
if (appdata) {
|
||||
const { profile } = appdata
|
||||
if (profile?.id) {
|
||||
setAuthor(profile)
|
||||
addAuthors([profile])
|
||||
if (!profile) loadAuthor()
|
||||
} else {
|
||||
setTimeout(loadAuthor, 15)
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
|
|
Loading…
Reference in New Issue
Block a user