fix: saving profile data breaks cache (#1937)

zio/stable
Joaquín Sánchez 2023-04-16 21:39:33 +02:00 committed by GitHub
parent c71259334c
commit f07d32375a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,12 @@ const { submit, submitting } = submitter(async ({ dirtyFields }) => {
return return
} }
const server = currentUser.value!.server
if (!res.account.acct.includes('@'))
res.account.acct = `${res.account.acct}@${server}`
cacheAccount(res.account, server, true)
currentUser.value!.account = res.account currentUser.value!.account = res.account
reset() reset()
}) })