mirror of
https://github.com/kremalicious/blog.git
synced 2024-11-22 09:56:51 +01:00
Add new unhelpful error message to useSend hook.
This commit is contained in:
parent
f4faca4e51
commit
83e50e74c3
@ -1,7 +1,8 @@
|
|||||||
const terribleErrorMessages = [
|
const terribleErrorMessages = [
|
||||||
'User rejected the request',
|
'User rejected the request',
|
||||||
'User denied transaction signature',
|
'User denied transaction signature',
|
||||||
'Cannot read properties of undefined'
|
'Cannot read properties of undefined',
|
||||||
|
'User cancelled the request'
|
||||||
]
|
]
|
||||||
|
|
||||||
export function isUnhelpfulErrorMessage(message: string) {
|
export function isUnhelpfulErrorMessage(message: string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user