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/fill_order.tsx | |
parent | 71d68f975cd7bc089f0cbef4e5888a73eab4ee42 (diff) | |
download | dexon-0x-contracts-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar dexon-0x-contracts-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.gz dexon-0x-contracts-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.bz2 dexon-0x-contracts-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.lz dexon-0x-contracts-b4faa4851a08fd526a6ffc546eed575b796a5b3d.tar.xz 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/fill_order.tsx')
-rw-r--r-- | packages/website/ts/components/fill_order.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx index 1a150e9ee..28488f399 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -573,7 +573,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { isFilling: false, }); const errMsg = `${err}`; - if (_.includes(errMsg, 'User denied transaction signature')) { + if (utils.didUserDenyWeb3Request(errMsg)) { return; } globalErrMsg = 'Failed to fill order, please refresh and try again'; @@ -653,7 +653,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { isCancelling: false, }); const errMsg = `${err}`; - if (_.includes(errMsg, 'User denied transaction signature')) { + if (utils.didUserDenyWeb3Request(errMsg)) { return; } globalErrMsg = 'Failed to cancel order, please refresh and try again'; |