update-token-fix

This commit is contained in:
Untone 2024-05-18 14:25:37 +03:00
parent abec4043a3
commit 07f2770a98

View File

@ -225,9 +225,12 @@ export const SessionProvider = (props: {
const appdata = session()?.user.app_data const appdata = session()?.user.app_data
if (appdata) { if (appdata) {
const { profile } = appdata const { profile } = appdata
if (profile?.id) {
setAuthor(profile) setAuthor(profile)
addAuthors([profile]) addAuthors([profile])
if (!profile) loadAuthor() } else {
setTimeout(loadAuthor, 15)
}
} }
} catch (e) { } catch (e) {
console.error(e) console.error(e)