Fix error message for ledger signing

This commit is contained in:
nicolas.dorier 2018-09-27 15:43:34 +09:00
parent feab4cc48a
commit 87678c58ac
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@
else {
bridge.sendCommand('test', null, 5)
.catch(function (reason) {
if (reason.message === "Sign failed")
if (reason.name === "TransportError")
reason = "Have you forgot to activate browser support in your ledger app?";
Write('hw', 'error', reason);
})

View File

@ -135,7 +135,7 @@ $(function () {
bridge.sendCommand('test', null, 5)
.catch(function (reason)
{
if (reason.message === "Sign failed")
if (reason.name === "TransportError")
reason = "Are you running the ledger app with version equals or above 1.2.4?";
Write('hw', 'error', reason);
})