diff options
author | Fabio Berger <me@fabioberger.com> | 2017-11-24 03:58:27 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2017-11-24 03:58:27 +0800 |
commit | 6118561bb5928a19e7e2e8e7fed7f80c7af842b9 (patch) | |
tree | 5d5df5e34eb65a8419f0fc017b725d73d3fec25b /packages/website/ts/components | |
parent | 6a9f10cd36e254bfb43f13e5728b5346823b5cfa (diff) | |
download | dexon-sol-tools-6118561bb5928a19e7e2e8e7fed7f80c7af842b9.tar.gz dexon-sol-tools-6118561bb5928a19e7e2e8e7fed7f80c7af842b9.tar.zst dexon-sol-tools-6118561bb5928a19e7e2e8e7fed7f80c7af842b9.zip |
update tokenByAddress after tokenStateByAddress to avoid race-condition
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/generate_order/asset_picker.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/generate_order/asset_picker.tsx b/packages/website/ts/components/generate_order/asset_picker.tsx index 59826d06e..410b0440a 100644 --- a/packages/website/ts/components/generate_order/asset_picker.tsx +++ b/packages/website/ts/components/generate_order/asset_picker.tsx @@ -269,7 +269,6 @@ export class AssetPicker extends React.Component<AssetPickerProps, AssetPickerSt newTokenEntry.isTracked = true; trackedTokenStorage.addTrackedTokenToUser(this.props.userAddress, this.props.networkId, newTokenEntry); - this.props.dispatcher.updateTokenByAddress([newTokenEntry]); const [ balance, @@ -281,6 +280,7 @@ export class AssetPicker extends React.Component<AssetPickerProps, AssetPickerSt allowance, }, }); + this.props.dispatcher.updateTokenByAddress([newTokenEntry]); this.setState({ isAddingTokenToTracked: false, assetView: AssetViews.ASSET_PICKER, |