aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-26 04:36:45 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-26 04:36:45 +0800
commit3adc6b6daa16bb1dc80a8c4109b0bed56f937ea0 (patch)
tree5e3dd34412506ff5638ea3aad84ec5d377daea80 /packages/instant/src/containers
parentc5e8bb17635d8710f0db62a8887f990cb6ad482f (diff)
downloaddexon-sol-tools-3adc6b6daa16bb1dc80a8c4109b0bed56f937ea0.tar
dexon-sol-tools-3adc6b6daa16bb1dc80a8c4109b0bed56f937ea0.tar.gz
dexon-sol-tools-3adc6b6daa16bb1dc80a8c4109b0bed56f937ea0.tar.bz2
dexon-sol-tools-3adc6b6daa16bb1dc80a8c4109b0bed56f937ea0.tar.lz
dexon-sol-tools-3adc6b6daa16bb1dc80a8c4109b0bed56f937ea0.tar.xz
dexon-sol-tools-3adc6b6daa16bb1dc80a8c4109b0bed56f937ea0.tar.zst
dexon-sol-tools-3adc6b6daa16bb1dc80a8c4109b0bed56f937ea0.zip
Making failure txHash required
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/selected_asset_buy_button.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_button.ts b/packages/instant/src/containers/selected_asset_buy_button.ts
index 8d60715be..adcbd61bc 100644
--- a/packages/instant/src/containers/selected_asset_buy_button.ts
+++ b/packages/instant/src/containers/selected_asset_buy_button.ts
@@ -22,7 +22,7 @@ interface ConnectedDispatch {
onSignatureDenied: (buyQuote: BuyQuote, error: Error) => void;
onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void;
onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void;
- onBuyFailure: (buyQuote: BuyQuote) => void;
+ onBuyFailure: (buyQuote: BuyQuote, txHash: string) => void;
}
const mapStateToProps = (state: State, _ownProps: SelectedAssetBuyButtonProps): ConnectedState => ({
@@ -41,7 +41,8 @@ const mapDispatchToProps = (dispatch: Dispatch<Action>, ownProps: SelectedAssetB
},
onBuySuccess: (buyQuote: BuyQuote, txHash: string) =>
dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.SUCCESS, txHash })),
- onBuyFailure: buyQuote => dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.FAILURE })),
+ onBuyFailure: (buyQuote: BuyQuote, txHash: string) =>
+ dispatch(actions.updateBuyOrderState({ processState: OrderProcessState.FAILURE, txHash })),
onSignatureDenied: (buyQuote, error) => {
dispatch(actions.resetAmount());
dispatch(actions.setError(error));