diff --git a/utils/getErrorMessage.ts b/utils/getErrorMessage.ts index 55eb0c6db..6a93d68dd 100644 --- a/utils/getErrorMessage.ts +++ b/utils/getErrorMessage.ts @@ -84,23 +84,12 @@ export const extractCodeFromError = ( normalizedMessage.includes('rejected the request') || normalizedMessage.includes('reject this request') || normalizedMessage.includes('rejected methods') || - normalizedMessage.includes('transaction declined') + normalizedMessage.includes('transaction declined') || + normalizedMessage.includes('signed declined') ) return 'ACTION_REJECTED'; } - // Ledger live errors - if ( - 'data' in error && - typeof error.data === 'object' && - Array.isArray(error.data) && - typeof error.data['0'] === 'object' && - typeof error.data['0'].message === 'string' && - error.data['0'].message.toLowerCase().includes('rejected') - ) { - return 'ACTION_REJECTED'; - } - if ('name' in error && typeof error.name == 'string') { const error_name = error.name.toLowerCase(); if (error_name === 'EthAppPleaseEnableContractData'.toLowerCase())