aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 04:42:59 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-19 04:42:59 +0800
commit9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937 (patch)
tree5cd2380ffc18a28ff9e5a68a0747872ed920ac2d /packages/instant/src/containers
parent94ace00e0cfd550bccf33f85441ce1dad33f1348 (diff)
downloaddexon-sol-tools-9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937.tar
dexon-sol-tools-9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937.tar.gz
dexon-sol-tools-9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937.tar.bz2
dexon-sol-tools-9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937.tar.lz
dexon-sol-tools-9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937.tar.xz
dexon-sol-tools-9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937.tar.zst
dexon-sol-tools-9aa67538231cc4ff71fd0f8ebe4dc66b1bcc4937.zip
Rename update function to set function since it doesnt take a parameter
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/selected_asset_amount_input.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/containers/selected_asset_amount_input.ts b/packages/instant/src/containers/selected_asset_amount_input.ts
index 2a1e5e457..e55c8b991 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.updateBuyquoteRequestStatePending());
+ dispatch(actions.setQuoteRequestStatePending());
let newBuyQuote: BuyQuote | undefined;
try {
newBuyQuote = await assetBuyer.getBuyQuoteAsync(assetData, baseUnitValue);
} catch (error) {
- dispatch(actions.updateBuyquoteRequestStateFailure());
+ dispatch(actions.setQuoteRequestStateFailure());
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.updateBuyquoteRequestStatePending());
+ dispatch(actions.setQuoteRequestStatePending());
// tslint:disable-next-line:no-floating-promises
debouncedUpdateBuyQuoteAsync(dispatch, assetData, value);
}