Wait for thunk errors

This commit is contained in:
Jon Staab
2025-09-05 17:32:01 -07:00
committed by hodlbod
parent 7217d122b5
commit 998c48b1d3
5 changed files with 14 additions and 11 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
} from "@welshman/util"
import type {Filter} from "@welshman/util"
import {makeIntersectionFeed, makeRelayFeed, feedFromFilters} from "@welshman/feeds"
import {pubkey, signer, getThunkError} from "@welshman/app"
import {pubkey, signer, waitForThunkError} from "@welshman/app"
import Icon from "@lib/components/Icon.svelte"
import Button from "@lib/components/Button.svelte"
import FieldInline from "@lib/components/FieldInline.svelte"
@@ -145,7 +145,7 @@
await attemptAuth(NOTIFIER_RELAY)
const thunk = await publishAlert(params)
const error = await getThunkError(thunk)
const error = await waitForThunkError(thunk)
if (error) {
return pushToast({