diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-25 01:38:56 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-25 01:38:56 +0800 |
commit | ce5bc3c1c945b12997e3030301bf25f982c55365 (patch) | |
tree | 25f561a8fbedd15c83979666123020604174a600 /packages/instant/src/util | |
parent | 33d8044f028b16e3e48ee963790aa840f3191803 (diff) | |
download | dexon-0x-contracts-ce5bc3c1c945b12997e3030301bf25f982c55365.tar dexon-0x-contracts-ce5bc3c1c945b12997e3030301bf25f982c55365.tar.gz dexon-0x-contracts-ce5bc3c1c945b12997e3030301bf25f982c55365.tar.bz2 dexon-0x-contracts-ce5bc3c1c945b12997e3030301bf25f982c55365.tar.lz dexon-0x-contracts-ce5bc3c1c945b12997e3030301bf25f982c55365.tar.xz dexon-0x-contracts-ce5bc3c1c945b12997e3030301bf25f982c55365.tar.zst dexon-0x-contracts-ce5bc3c1c945b12997e3030301bf25f982c55365.zip |
Message when signature denied
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r-- | packages/instant/src/util/error.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/instant/src/util/error.ts b/packages/instant/src/util/error.ts index 40fd24c7e..873ba52ee 100644 --- a/packages/instant/src/util/error.ts +++ b/packages/instant/src/util/error.ts @@ -46,6 +46,10 @@ const humanReadableMessageForError = (error: Error, asset?: Asset): string | und return `${assetName} is currently unavailable`; } + if (error.message === AssetBuyerError.SignatureRequestDenied) { + return 'You denied this transaction.'; + } + return undefined; }; |