aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers/latest_buy_quote_order_details.ts
diff options
context:
space:
mode:
authorBrandon Millman <brandon@0xproject.com>2018-11-14 06:35:09 +0800
committerGitHub <noreply@github.com>2018-11-14 06:35:09 +0800
commite02dc13805349a770506350c69e9061f596b48b2 (patch)
tree7e0b7165ba370af5088a51183d39a7fba9c535a0 /packages/instant/src/containers/latest_buy_quote_order_details.ts
parent7b4f63a39ca4b4e05123d2b6871c6e01f8a132a2 (diff)
parent820ab062a6b24f246770f3700ecd6fbb5e3dcfa4 (diff)
downloaddexon-0x-contracts-e02dc13805349a770506350c69e9061f596b48b2.tar
dexon-0x-contracts-e02dc13805349a770506350c69e9061f596b48b2.tar.gz
dexon-0x-contracts-e02dc13805349a770506350c69e9061f596b48b2.tar.bz2
dexon-0x-contracts-e02dc13805349a770506350c69e9061f596b48b2.tar.lz
dexon-0x-contracts-e02dc13805349a770506350c69e9061f596b48b2.tar.xz
dexon-0x-contracts-e02dc13805349a770506350c69e9061f596b48b2.tar.zst
dexon-0x-contracts-e02dc13805349a770506350c69e9061f596b48b2.zip
Merge pull request #1252 from 0xProject/fix/asset-buyer/price-per-token
[asset-buyer][instant] Fix incorrect token prices for non 18-decimal tokens
Diffstat (limited to 'packages/instant/src/containers/latest_buy_quote_order_details.ts')
-rw-r--r--packages/instant/src/containers/latest_buy_quote_order_details.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/containers/latest_buy_quote_order_details.ts b/packages/instant/src/containers/latest_buy_quote_order_details.ts
index 2b59ed3ae..5dfe535e7 100644
--- a/packages/instant/src/containers/latest_buy_quote_order_details.ts
+++ b/packages/instant/src/containers/latest_buy_quote_order_details.ts
@@ -14,6 +14,7 @@ export interface LatestBuyQuoteOrderDetailsProps {}
interface ConnectedState {
buyQuoteInfo?: BuyQuoteInfo;
+ selectedAssetUnitAmount?: BigNumber;
ethUsdPrice?: BigNumber;
isLoading: boolean;
}
@@ -21,6 +22,7 @@ interface ConnectedState {
const mapStateToProps = (state: State, _ownProps: LatestBuyQuoteOrderDetailsProps): ConnectedState => ({
// use the worst case quote info
buyQuoteInfo: oc(state).latestBuyQuote.worstCaseQuoteInfo(),
+ selectedAssetUnitAmount: state.selectedAssetUnitAmount,
ethUsdPrice: state.ethUsdPrice,
isLoading: state.quoteRequestState === AsyncProcessState.Pending,
});