Properly detect user signing cancellation on Metamask, Parity signer and Ledger

This commit is contained in:
Fabio Berger
2018-01-28 10:28:17 +01:00
parent 71d68f975c
commit b4faa4851a
6 changed files with 7 additions and 7 deletions

View File

@@ -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}`);