diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-20 06:01:54 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-20 06:01:54 +0800 |
commit | a017f5e38561a152e8a757b340c1b0c6b3a3e21f (patch) | |
tree | 5ff144d227cab99c80d19bc7b4c3617e89c12e77 /packages/instant/src/containers/selected_asset_amount_input.ts | |
parent | 100f446031e84c367f1d0852ef60fd04d4544b9f (diff) | |
parent | 2c308c0f4c172293e634d27f731d026e0361e639 (diff) | |
download | dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.gz dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.bz2 dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.lz dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.xz dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.tar.zst dexon-sol-tools-a017f5e38561a152e8a757b340c1b0c6b3a3e21f.zip |
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/beta-render-et-al
Diffstat (limited to 'packages/instant/src/containers/selected_asset_amount_input.ts')
-rw-r--r-- | packages/instant/src/containers/selected_asset_amount_input.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/instant/src/containers/selected_asset_amount_input.ts b/packages/instant/src/containers/selected_asset_amount_input.ts index 6cd39b855..0d847cf02 100644 --- a/packages/instant/src/containers/selected_asset_amount_input.ts +++ b/packages/instant/src/containers/selected_asset_amount_input.ts @@ -62,13 +62,13 @@ const updateBuyQuoteAsync = async ( const baseUnitValue = Web3Wrapper.toBaseUnitAmount(assetAmount, asset.metaData.decimals); // mark quote as pending - dispatch(actions.updateBuyQuoteStatePending()); + dispatch(actions.setQuoteRequestStatePending()); let newBuyQuote: BuyQuote | undefined; try { newBuyQuote = await assetBuyer.getBuyQuoteAsync(asset.assetData, baseUnitValue); } catch (error) { - dispatch(actions.updateBuyQuoteStateFailure()); + dispatch(actions.setQuoteRequestStateFailure()); errorUtil.errorFlasher.flashNewError(dispatch, error); return; } @@ -90,11 +90,11 @@ const mapDispatchToProps = ( // invalidate the last buy quote. dispatch(actions.updateLatestBuyQuote(undefined)); // reset our buy state - dispatch(actions.updatebuyOrderState(AsyncProcessState.NONE)); + dispatch(actions.updateBuyOrderState(AsyncProcessState.NONE)); if (!_.isUndefined(value) && !_.isUndefined(asset) && !_.isUndefined(assetBuyer)) { // even if it's debounced, give them the illusion it's loading - dispatch(actions.updateBuyQuoteStatePending()); + dispatch(actions.setQuoteRequestStatePending()); // tslint:disable-next-line:no-floating-promises debouncedUpdateBuyQuoteAsync(assetBuyer, dispatch, asset, value); } |