From 83e50e74c3abb6a5f2dbd677af05224bec7cd9e5 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 7 Nov 2023 18:30:42 +0000 Subject: [PATCH] Add new unhelpful error message to useSend hook. --- src/features/Web3/hooks/useSend/isUnhelpfulErrorMessage.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/features/Web3/hooks/useSend/isUnhelpfulErrorMessage.ts b/src/features/Web3/hooks/useSend/isUnhelpfulErrorMessage.ts index e681cfbb..97aa4068 100644 --- a/src/features/Web3/hooks/useSend/isUnhelpfulErrorMessage.ts +++ b/src/features/Web3/hooks/useSend/isUnhelpfulErrorMessage.ts @@ -1,7 +1,8 @@ const terribleErrorMessages = [ 'User rejected the request', 'User denied transaction signature', - 'Cannot read properties of undefined' + 'Cannot read properties of undefined', + 'User cancelled the request' ] export function isUnhelpfulErrorMessage(message: string) {