aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/inputs
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-28 17:28:17 +0800
committerFabio Berger <me@fabioberger.com>2018-01-28 17:28:17 +0800
commitb4faa4851a08fd526a6ffc546eed575b796a5b3d (patch)
treecba090bdad43434a6bdec3d2bf1392eeef8e94bf /packages/website/ts/components/inputs
parent71d68f975cd7bc089f0cbef4e5888a73eab4ee42 (diff)
downloaddexon-sol-tools-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar
dexon-sol-tools-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.gz
dexon-sol-tools-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.bz2
dexon-sol-tools-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.lz
dexon-sol-tools-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.xz
dexon-sol-tools-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.zst
dexon-sol-tools-b4faa4851a08fd526a6ffc546eed575b796a5b3d.zip
Properly detect user signing cancellation on Metamask, Parity signer and Ledger
Diffstat (limited to 'packages/website/ts/components/inputs')
-rw-r--r--packages/website/ts/components/inputs/allowance_toggle.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/inputs/allowance_toggle.tsx b/packages/website/ts/components/inputs/allowance_toggle.tsx
index da46db4f4..d8852c11f 100644
--- a/packages/website/ts/components/inputs/allowance_toggle.tsx
+++ b/packages/website/ts/components/inputs/allowance_toggle.tsx
@@ -78,7 +78,7 @@ export class AllowanceToggle extends React.Component<AllowanceToggleProps, Allow
isSpinnerVisible: false,
});
const errMsg = `${err}`;
- if (_.includes(errMsg, 'User denied transaction')) {
+ if (utils.didUserDenyWeb3Request(errMsg)) {
return;
}
utils.consoleLog(`Unexpected error encountered: ${err}`);