aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-29 06:24:02 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-29 06:24:02 +0800
commitb9c983b4d691e58894b8b47f8e5952fdfcc275f9 (patch)
treefcd977c5add325a7f9648098f8085c24ca78e7cc /packages/instant/src/util
parent208ee935c843cfff9f0559a4c4058af3908f6261 (diff)
downloaddexon-sol-tools-b9c983b4d691e58894b8b47f8e5952fdfcc275f9.tar
dexon-sol-tools-b9c983b4d691e58894b8b47f8e5952fdfcc275f9.tar.gz
dexon-sol-tools-b9c983b4d691e58894b8b47f8e5952fdfcc275f9.tar.bz2
dexon-sol-tools-b9c983b4d691e58894b8b47f8e5952fdfcc275f9.tar.lz
dexon-sol-tools-b9c983b4d691e58894b8b47f8e5952fdfcc275f9.tar.xz
dexon-sol-tools-b9c983b4d691e58894b8b47f8e5952fdfcc275f9.tar.zst
dexon-sol-tools-b9c983b4d691e58894b8b47f8e5952fdfcc275f9.zip
Use base unit value
Diffstat (limited to 'packages/instant/src/util')
-rw-r--r--packages/instant/src/util/buy_quote_updater.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/util/buy_quote_updater.ts b/packages/instant/src/util/buy_quote_updater.ts
index 5685a7d00..c1899f8c1 100644
--- a/packages/instant/src/util/buy_quote_updater.ts
+++ b/packages/instant/src/util/buy_quote_updater.ts
@@ -37,7 +37,7 @@ export const buyQuoteUpdater = {
} catch (error) {
if (options.dispatchErrors) {
dispatch(actions.setQuoteRequestStateFailure());
- analytics.trackQuoteError(error.message ? error.message : 'other', assetUnitAmount, fetchOrigin);
+ analytics.trackQuoteError(error.message ? error.message : 'other', baseUnitValue, fetchOrigin);
let errorMessage;
if (error.message === AssetBuyerError.InsufficientAssetLiquidity) {
const assetName = assetUtils.bestNameForAsset(asset, 'of this asset');