diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-28 17:28:17 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-28 17:28:17 +0800 |
commit | b4faa4851a08fd526a6ffc546eed575b796a5b3d (patch) | |
tree | cba090bdad43434a6bdec3d2bf1392eeef8e94bf /packages/website/ts/components/eth_weth_conversion_button.tsx | |
parent | 71d68f975cd7bc089f0cbef4e5888a73eab4ee42 (diff) | |
download | dexon-0x-contracts-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.gz dexon-0x-contracts-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.zst dexon-0x-contracts-b4faa4851a08fd526a6ffc546eed575b796a5b3d.zip |
Properly detect user signing cancellation on Metamask, Parity signer and Ledger
Diffstat (limited to 'packages/website/ts/components/eth_weth_conversion_button.tsx')
-rw-r--r-- | packages/website/ts/components/eth_weth_conversion_button.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/eth_weth_conversion_button.tsx b/packages/website/ts/components/eth_weth_conversion_button.tsx index 300e71f1f..cc5e623ea 100644 --- a/packages/website/ts/components/eth_weth_conversion_button.tsx +++ b/packages/website/ts/components/eth_weth_conversion_button.tsx @@ -108,7 +108,7 @@ export class EthWethConversionButton extends React.Component< const errMsg = `${err}`; if (_.includes(errMsg, BlockchainCallErrs.UserHasNoAssociatedAddresses)) { this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true); - } else if (!_.includes(errMsg, 'User denied transaction')) { + } else if (!utils.didUserDenyWeb3Request(errMsg)) { utils.consoleLog(`Unexpected error encountered: ${err}`); utils.consoleLog(err.stack); const errorMsg = |