aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-22 00:48:32 +0800
committerFabio Berger <me@fabioberger.com>2018-01-22 00:48:32 +0800
commit8a858501f2b633f47cec9576b25e6f99911bbc09 (patch)
treec0e1c3f1a44d85c174d87ce40ab846c1eba492cf /packages
parente1af25c8a6fa96c665d63fff2033d7611b023db2 (diff)
downloaddexon-sol-tools-8a858501f2b633f47cec9576b25e6f99911bbc09.tar
dexon-sol-tools-8a858501f2b633f47cec9576b25e6f99911bbc09.tar.gz
dexon-sol-tools-8a858501f2b633f47cec9576b25e6f99911bbc09.tar.bz2
dexon-sol-tools-8a858501f2b633f47cec9576b25e6f99911bbc09.tar.lz
dexon-sol-tools-8a858501f2b633f47cec9576b25e6f99911bbc09.tar.xz
dexon-sol-tools-8a858501f2b633f47cec9576b25e6f99911bbc09.tar.zst
dexon-sol-tools-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.tsx4
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;
}