aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 02:09:23 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 02:09:23 +0800
commit4b348e1e603ec45e1e4bf39533b4b204423cafa0 (patch)
treec9fa2d22f44f720a918a53e0cefcec4a00a362f6 /packages/instant/src/containers
parent857eb95ac0f8299fe517321cb805a836232222bc (diff)
downloaddexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar
dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.gz
dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.bz2
dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.lz
dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.xz
dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.tar.zst
dexon-sol-tools-4b348e1e603ec45e1e4bf39533b4b204423cafa0.zip
quoteState -> quoteRequestState
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/selected_asset_amount_input.ts6
-rw-r--r--packages/instant/src/containers/selected_asset_instant_heading.ts4
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/instant/src/containers/selected_asset_amount_input.ts b/packages/instant/src/containers/selected_asset_amount_input.ts
index 0810b093a..aca6a09d4 100644
--- a/packages/instant/src/containers/selected_asset_amount_input.ts
+++ b/packages/instant/src/containers/selected_asset_amount_input.ts
@@ -44,13 +44,13 @@ const updateBuyQuoteAsync = async (
const baseUnitValue = Web3Wrapper.toBaseUnitAmount(assetAmount, zrxDecimals);
// mark quote as pending
- dispatch(actions.updateBuyQuoteStatePending());
+ dispatch(actions.updateBuyquoteRequestStatePending());
let newBuyQuote: BuyQuote | undefined;
try {
newBuyQuote = await assetBuyer.getBuyQuoteAsync(assetData, baseUnitValue);
} catch (error) {
- dispatch(actions.updateBuyQuoteStateFailure());
+ dispatch(actions.updateBuyquoteRequestStateFailure());
errorUtil.errorFlasher.flashNewError(dispatch, error);
return;
}
@@ -76,7 +76,7 @@ const mapDispatchToProps = (
if (!_.isUndefined(value) && !_.isUndefined(assetData)) {
// even if it's debounced, give them the illusion it's loading
- dispatch(actions.updateBuyQuoteStatePending());
+ dispatch(actions.updateBuyquoteRequestStatePending());
// tslint:disable-next-line:no-floating-promises
debouncedUpdateBuyQuoteAsync(dispatch, assetData, value);
}
diff --git a/packages/instant/src/containers/selected_asset_instant_heading.ts b/packages/instant/src/containers/selected_asset_instant_heading.ts
index 0509db5da..43127582c 100644
--- a/packages/instant/src/containers/selected_asset_instant_heading.ts
+++ b/packages/instant/src/containers/selected_asset_instant_heading.ts
@@ -15,14 +15,14 @@ interface ConnectedState {
selectedAssetAmount?: BigNumber;
totalEthBaseAmount?: BigNumber;
ethUsdPrice?: BigNumber;
- quoteState: AsyncProcessState;
+ quoteRequestState: AsyncProcessState;
}
const mapStateToProps = (state: State, _ownProps: InstantHeadingProps): ConnectedState => ({
selectedAssetAmount: state.selectedAssetAmount,
totalEthBaseAmount: oc(state).latestBuyQuote.worstCaseQuoteInfo.totalEthAmount(),
ethUsdPrice: state.ethUsdPrice,
- quoteState: state.quoteState,
+ quoteRequestState: state.quoteRequestState,
});
export const SelectedAssetInstantHeading: React.ComponentClass<InstantHeadingProps> = connect(mapStateToProps)(