refactor: add onMastoInit

This commit is contained in:
三咲智子 2023-01-03 17:53:31 +08:00
parent 6092b27da6
commit 6729666170
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
5 changed files with 15 additions and 22 deletions

View file

@ -45,10 +45,7 @@ const { form, reset, submitter, dirtyFields, isError } = useForm({
},
})
watch(isMastoInitialised, async (val) => {
if (!val)
return
onMastoInit(async () => {
// Keep the information to be edited up to date
await pullMyAccountInfo()
reset()