diff options
author | Brandon Millman <brandon@0xproject.com> | 2018-11-14 06:35:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-14 06:35:09 +0800 |
commit | e02dc13805349a770506350c69e9061f596b48b2 (patch) | |
tree | 7e0b7165ba370af5088a51183d39a7fba9c535a0 /packages/instant/src/components/zero_ex_instant_provider.tsx | |
parent | 7b4f63a39ca4b4e05123d2b6871c6e01f8a132a2 (diff) | |
parent | 820ab062a6b24f246770f3700ecd6fbb5e3dcfa4 (diff) | |
download | dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.gz dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.bz2 dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.lz dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.xz dexon-sol-tools-e02dc13805349a770506350c69e9061f596b48b2.tar.zst dexon-sol-tools-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/components/zero_ex_instant_provider.tsx')
-rw-r--r-- | packages/instant/src/components/zero_ex_instant_provider.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/zero_ex_instant_provider.tsx b/packages/instant/src/components/zero_ex_instant_provider.tsx index 411f118cc..e64579518 100644 --- a/packages/instant/src/components/zero_ex_instant_provider.tsx +++ b/packages/instant/src/components/zero_ex_instant_provider.tsx @@ -73,7 +73,7 @@ export class ZeroExInstantProvider extends React.Component<ZeroExInstantProvider completeAssetMetaDataMap, networkId, ), - selectedAssetAmount: _.isUndefined(props.defaultAssetBuyAmount) + selectedAssetUnitAmount: _.isUndefined(props.defaultAssetBuyAmount) ? undefined : new BigNumber(props.defaultAssetBuyAmount), availableAssets: _.isUndefined(props.availableAssetDatas) |