fix: fixed rejected by user message (#432)
This commit is contained in:
parent
5ff848bca7
commit
0e62045031
@ -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,
|
||||
},
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user