diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-22 00:48:32 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-22 00:48:32 +0800 |
commit | 8a858501f2b633f47cec9576b25e6f99911bbc09 (patch) | |
tree | c0e1c3f1a44d85c174d87ce40ab846c1eba492cf /packages | |
parent | e1af25c8a6fa96c665d63fff2033d7611b023db2 (diff) | |
download | dexon-0x-contracts-8a858501f2b633f47cec9576b25e6f99911bbc09.tar.gz dexon-0x-contracts-8a858501f2b633f47cec9576b25e6f99911bbc09.tar.zst dexon-0x-contracts-8a858501f2b633f47cec9576b25e6f99911bbc09.zip |
Fix fill/cancel order by looking for NoError instead of empty blockchainErr given the BlockchainErrs type refactor
Diffstat (limited to 'packages')
-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 ab6cdb5f3..1a150e9ee 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -493,7 +493,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { await this._checkForUntrackedTokensAndAskToAdd(); } private async _onFillOrderClickFireAndForgetAsync(): Promise<void> { - if (!_.isEmpty(this.props.blockchainErr) || _.isEmpty(this.props.userAddress)) { + if (this.props.blockchainErr !== BlockchainErrs.NoError || _.isEmpty(this.props.userAddress)) { this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true); return; } @@ -586,7 +586,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { } } private async _onCancelOrderClickFireAndForgetAsync(): Promise<void> { - if (!_.isEmpty(this.props.blockchainErr) || _.isEmpty(this.props.userAddress)) { + if (this.props.blockchainErr !== BlockchainErrs.NoError || _.isEmpty(this.props.userAddress)) { this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true); return; } |