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/token_balances.tsx | |
parent | 71d68f975cd7bc089f0cbef4e5888a73eab4ee42 (diff) | |
download | dexon-sol-tools-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.gz 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/token_balances.tsx')
-rw-r--r-- | packages/website/ts/components/token_balances.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/token_balances.tsx b/packages/website/ts/components/token_balances.tsx index 2cef413c7..88f86fbf5 100644 --- a/packages/website/ts/components/token_balances.tsx +++ b/packages/website/ts/components/token_balances.tsx @@ -519,7 +519,7 @@ export class TokenBalances extends React.Component<TokenBalancesProps, TokenBala this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true); return false; } - if (_.includes(errMsg, 'User denied transaction')) { + if (utils.didUserDenyWeb3Request(errMsg)) { return false; } utils.consoleLog(`Unexpected error encountered: ${err}`); |