Handle profile update errors

This commit is contained in:
Jon Staab
2026-03-06 14:18:05 -08:00
parent 16c6015919
commit 2f3bc6cc6f
5 changed files with 72 additions and 30 deletions
+2 -2
View File
@@ -676,7 +676,7 @@ export const initProfile = (profile: Profile) => {
return publishThunk({event, relays: []})
}
export const updateProfile = async ({
export const updateProfile = ({
profile,
shouldBroadcast = !getTag(PROTECTED, profile.event?.tags || []),
}: {
@@ -697,5 +697,5 @@ export const updateProfile = async ({
const event = makeEvent(template.kind, template)
const relays = router.merge(scenarios).getUrls()
await publishThunk({event, relays}).complete
return publishThunk({event, relays})
}