diff --git a/src/store/slices/broadcast.ts b/src/store/slices/broadcast.ts index 8d4d98c4..dc0fc77d 100644 --- a/src/store/slices/broadcast.ts +++ b/src/store/slices/broadcast.ts @@ -146,8 +146,11 @@ export default function createBroadcastSlice( set({ createAccountModal: false, toast: { - message: response.error ?? `Transaction failed: ${response.error}`, - hash: response.result.hash, + message: + response.error && response.error !== 'Transaction failed' + ? `Transaction failed: ${response.error}` + : 'Transaction rejected by user', + hash: response.result?.hash ?? undefined, isError: true, }, })