aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_order_state_buttons.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 00:03:39 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 00:03:39 +0800
commit8288e8cce963bbd96c71b3adeb5d34bb96c30693 (patch)
tree4aba3a0e514a364f5fc14048bfee616dc9149e8b /packages/instant/src/components/buy_order_state_buttons.tsx
parent1bb7a28690662d682f865505b6c62fe655d57316 (diff)
downloaddexon-0x-contracts-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar
dexon-0x-contracts-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.gz
dexon-0x-contracts-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.bz2
dexon-0x-contracts-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.lz
dexon-0x-contracts-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.xz
dexon-0x-contracts-8288e8cce963bbd96c71b3adeb5d34bb96c30693.tar.zst
dexon-0x-contracts-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/components/buy_order_state_buttons.tsx')
-rw-r--r--packages/instant/src/components/buy_order_state_buttons.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/buy_order_state_buttons.tsx b/packages/instant/src/components/buy_order_state_buttons.tsx
index f9d683be6..7c06ff31b 100644
--- a/packages/instant/src/components/buy_order_state_buttons.tsx
+++ b/packages/instant/src/components/buy_order_state_buttons.tsx
@@ -1,4 +1,4 @@
-import { AssetBuyer, BuyQuote } from '@0x/asset-buyer';
+import { AssetBuyer, AssetBuyerError, BuyQuote } from '@0x/asset-buyer';
import * as React from 'react';
import { BuyButton } from '../components/buy_button';
@@ -18,7 +18,7 @@ export interface BuyOrderStateButtonProps {
assetBuyer?: AssetBuyer;
onViewTransaction: () => void;
onValidationPending: (buyQuote: BuyQuote) => void;
- onValidationFail: (buyQuote: BuyQuote, error: ZeroExInstantError) => void;
+ onValidationFail: (buyQuote: BuyQuote, errorMessage: AssetBuyerError | ZeroExInstantError) => void;
onSignatureDenied: (buyQuote: BuyQuote, error: Error) => void;
onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void;
onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void;