@injectivelabs/exceptions
Advanced tools
Comparing version 1.0.21 to 1.0.22
@@ -32,2 +32,8 @@ "use strict"; | ||
} | ||
if (message.includes('Ledger device: Condition of use not satisfied')) { | ||
this.setMessage('The request has been rejected'); | ||
} | ||
if (message.includes('U2F browser support is needed for Ledger.')) { | ||
this.setMessage('Please use the latest Chrome/Firefox browser versions to connect with your Ledger device'); | ||
} | ||
} | ||
@@ -34,0 +40,0 @@ } |
@@ -31,3 +31,3 @@ "use strict"; | ||
if (parsedMessage.includes('User denied message signature'.toLowerCase())) { | ||
return 'You have rejected signing the transaction'; | ||
return 'The request has been rejected'; | ||
} | ||
@@ -34,0 +34,0 @@ return parsedMessage; |
{ | ||
"name": "@injectivelabs/exceptions", | ||
"description": "List of exceptions that can be reused throughout Injective's projects.", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"license": "MIT", | ||
@@ -40,3 +40,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "c4d1af58373186d1ee08064f15f4d1ec05df1a46" | ||
"gitHead": "6e687561a4a17a758976f1a357df7a9a6ef944f6" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
141713
2255