diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-30 00:03:39 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-30 00:03:39 +0800 |
commit | 8288e8cce963bbd96c71b3adeb5d34bb96c30693 (patch) | |
tree | 4aba3a0e514a364f5fc14048bfee616dc9149e8b /packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts | |
parent | 1bb7a28690662d682f865505b6c62fe655d57316 (diff) | |
download | dexon-sol-tools-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar dexon-sol-tools-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.gz dexon-sol-tools-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.bz2 dexon-sol-tools-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.lz dexon-sol-tools-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.xz dexon-sol-tools-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.zst dexon-sol-tools-8288e8cce963bbd96c71b3adeb5d34bb96c30693.zip |
When transaction too low, treat as validation error. also modify callback: errorMessage could be AssetBuyError as well
Diffstat (limited to 'packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts')
-rw-r--r-- | packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts index 1a568c1fb..241c0192c 100644 --- a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts +++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts @@ -1,4 +1,4 @@ -import { AssetBuyer, BuyQuote } from '@0x/asset-buyer'; +import { AssetBuyer, AssetBuyerError, BuyQuote } from '@0x/asset-buyer'; import * as _ from 'lodash'; import * as React from 'react'; import { connect } from 'react-redux'; @@ -26,7 +26,7 @@ interface ConnectedDispatch { onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void; onBuyFailure: (buyQuote: BuyQuote, txHash: string) => void; onRetry: () => void; - onValidationFail: (buyQuote: BuyQuote, error: ZeroExInstantError) => void; + onValidationFail: (buyQuote: BuyQuote, errorMessage: AssetBuyerError | ZeroExInstantError) => void; } export interface SelectedAssetBuyOrderStateButtons {} const mapStateToProps = (state: State, _ownProps: SelectedAssetBuyOrderStateButtons): ConnectedState => ({ |