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({
|
set({
|
||||||
createAccountModal: false,
|
createAccountModal: false,
|
||||||
toast: {
|
toast: {
|
||||||
message: response.error ?? `Transaction failed: ${response.error}`,
|
message:
|
||||||
hash: response.result.hash,
|
response.error && response.error !== 'Transaction failed'
|
||||||
|
? `Transaction failed: ${response.error}`
|
||||||
|
: 'Transaction rejected by user',
|
||||||
|
hash: response.result?.hash ?? undefined,
|
||||||
isError: true,
|
isError: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user