diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 04:38:04 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 04:38:04 +0800 |
commit | 94ace00e0cfd550bccf33f85441ce1dad33f1348 (patch) | |
tree | d0a0305da7b80b0e19fae60a2401d84d7b7f6c5d | |
parent | 12b6877aeb0a6bcddab4193b62cd10347b8c328b (diff) | |
download | dexon-sol-tools-94ace00e0cfd550bccf33f85441ce1dad33f1348.tar dexon-sol-tools-94ace00e0cfd550bccf33f85441ce1dad33f1348.tar.gz dexon-sol-tools-94ace00e0cfd550bccf33f85441ce1dad33f1348.tar.bz2 dexon-sol-tools-94ace00e0cfd550bccf33f85441ce1dad33f1348.tar.lz dexon-sol-tools-94ace00e0cfd550bccf33f85441ce1dad33f1348.tar.xz dexon-sol-tools-94ace00e0cfd550bccf33f85441ce1dad33f1348.tar.zst dexon-sol-tools-94ace00e0cfd550bccf33f85441ce1dad33f1348.zip |
fix camel casing of updateBuyOrderState
-rw-r--r-- | packages/instant/src/containers/selected_asset_amount_input.ts | 2 | ||||
-rw-r--r-- | packages/instant/src/containers/selected_asset_buy_button.ts | 6 | ||||
-rw-r--r-- | packages/instant/src/redux/actions.ts | 2 |
3 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 aca6a09d4..2a1e5e457 100644 --- a/packages/instant/src/containers/selected_asset_amount_input.ts +++ b/packages/instant/src/containers/selected_asset_amount_input.ts @@ -72,7 +72,7 @@ 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(assetData)) { // even if it's debounced, give them the illusion it's loading diff --git a/packages/instant/src/containers/selected_asset_buy_button.ts b/packages/instant/src/containers/selected_asset_buy_button.ts index 4a8e31525..4d3315b1a 100644 --- a/packages/instant/src/containers/selected_asset_buy_button.ts +++ b/packages/instant/src/containers/selected_asset_buy_button.ts @@ -44,9 +44,9 @@ const mapStateToProps = (state: State, _ownProps: SelectedAssetBuyButtonProps): }); const mapDispatchToProps = (dispatch: Dispatch<Action>, ownProps: SelectedAssetBuyButtonProps): ConnectedDispatch => ({ - onClick: buyQuote => dispatch(actions.updatebuyOrderState(AsyncProcessState.PENDING)), - onBuySuccess: buyQuote => dispatch(actions.updatebuyOrderState(AsyncProcessState.SUCCESS)), - onBuyFailure: buyQuote => dispatch(actions.updatebuyOrderState(AsyncProcessState.FAILURE)), + onClick: buyQuote => dispatch(actions.updateBuyOrderState(AsyncProcessState.PENDING)), + onBuySuccess: buyQuote => dispatch(actions.updateBuyOrderState(AsyncProcessState.SUCCESS)), + onBuyFailure: buyQuote => dispatch(actions.updateBuyOrderState(AsyncProcessState.FAILURE)), }); export const SelectedAssetBuyButton: React.ComponentClass<SelectedAssetBuyButtonProps> = connect( diff --git a/packages/instant/src/redux/actions.ts b/packages/instant/src/redux/actions.ts index b4aa4f4cb..016dc29dc 100644 --- a/packages/instant/src/redux/actions.ts +++ b/packages/instant/src/redux/actions.ts @@ -35,7 +35,7 @@ export enum ActionTypes { export const actions = { updateEthUsdPrice: (price?: BigNumber) => createAction(ActionTypes.UPDATE_ETH_USD_PRICE, price), updateSelectedAssetAmount: (amount?: BigNumber) => createAction(ActionTypes.UPDATE_SELECTED_ASSET_AMOUNT, amount), - updatebuyOrderState: (buyState: AsyncProcessState) => + updateBuyOrderState: (buyState: AsyncProcessState) => createAction(ActionTypes.UPDATE_SELECTED_ASSET_BUY_STATE, buyState), updateLatestBuyQuote: (buyQuote?: BuyQuote) => createAction(ActionTypes.UPDATE_LATEST_BUY_QUOTE, buyQuote), updateBuyquoteRequestStatePending: () => createAction(ActionTypes.UPDATE_BUY_QUOTE_STATE_PENDING), |