aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers/selected_asset_buy_button.ts
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-26 04:32:37 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-26 04:32:37 +0800
commitc5e8bb17635d8710f0db62a8887f990cb6ad482f (patch)
tree7850c2f522aca88b327a8cdcbe07ce80f1109fc3 /packages/instant/src/containers/selected_asset_buy_button.ts
parentacefeff5f08f123c7c5d372088f2af016e31c599 (diff)
downloaddexon-0x-contracts-c5e8bb17635d8710f0db62a8887f990cb6ad482f.tar.gz
dexon-0x-contracts-c5e8bb17635d8710f0db62a8887f990cb6ad482f.tar.zst
dexon-0x-contracts-c5e8bb17635d8710f0db62a8887f990cb6ad482f.zip
txnHash -> txHash
Diffstat (limited to 'packages/instant/src/containers/selected_asset_buy_button.ts')
-rw-r--r--packages/instant/src/containers/selected_asset_buy_button.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_button.ts b/packages/instant/src/containers/selected_asset_buy_button.ts
index 17cc1a770..8d60715be 100644
--- a/packages/instant/src/containers/selected_asset_buy_button.ts
+++ b/packages/instant/src/containers/selected_asset_buy_button.ts
@@ -20,8 +20,8 @@ interface ConnectedState {
interface ConnectedDispatch {
onAwaitingSignature: (buyQuote: BuyQuote) => void;
onSignatureDenied: (buyQuote: BuyQuote, error: Error) => void;
- onBuyProcessing: (buyQuote: BuyQuote, txnHash: string) => void;
- onBuySuccess: (buyQuote: BuyQuote, txnHash: string) => void;
+ onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void;
+ onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void;
onBuyFailure: (buyQuote: BuyQuote) => void;
}
@@ -35,12 +35,12 @@ const mapDispatchToProps = (dispatch: Dispatch<Action>, ownProps: SelectedAssetB
const newOrderState: OrderState = { processState: OrderProcessState.AWAITING_SIGNATURE };
dispatch(actions.updateBuyOrderState(newOrderState));
},
- onBuyProcessing: (buyQuote: BuyQuote, txnHash: string) => {
- const newOrderState: OrderState = { processState: OrderProcessState.PROCESSING, txnHash };
+ onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => {
+ const newOrderState: OrderState = { processState: OrderProcessState.PROCESSING, txHash };
dispatch(actions.updateBuyOrderState(newOrderState));
},
- onBuySuccess: (buyQuote: BuyQuote, txnHash: string) =>
- dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.SUCCESS, txnHash })),
+ onBuySuccess: (buyQuote: BuyQuote, txHash: string) =>
+ dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.SUCCESS, txHash })),
onBuyFailure: buyQuote => dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.FAILURE })),
onSignatureDenied: (buyQuote, error) => {
dispatch(actions.resetAmount());