From ce5bc3c1c945b12997e3030301bf25f982c55365 Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Wed, 24 Oct 2018 10:38:56 -0700 Subject: Message when signature denied --- packages/instant/src/util/error.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'packages/instant/src/util') 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; }; -- cgit v1.2.3 From 05ce8aa124ae4d912ef43a9cf70a30ac2704867a Mon Sep 17 00:00:00 2001 From: Steve Klebanoff Date: Wed, 24 Oct 2018 10:42:52 -0700 Subject: feat: Message when denying signing transaction --- packages/instant/src/util/error.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/instant/src/util') diff --git a/packages/instant/src/util/error.ts b/packages/instant/src/util/error.ts index 873ba52ee..64c1f4885 100644 --- a/packages/instant/src/util/error.ts +++ b/packages/instant/src/util/error.ts @@ -47,7 +47,7 @@ const humanReadableMessageForError = (error: Error, asset?: Asset): string | und } if (error.message === AssetBuyerError.SignatureRequestDenied) { - return 'You denied this transaction.'; + return 'You denied this transaction'; } return undefined; -- cgit v1.2.3