aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/src/util/analytics.ts10
-rw-r--r--packages/instant/src/util/buy_quote_updater.ts8
2 files changed, 2 insertions, 16 deletions
diff --git a/packages/instant/src/util/analytics.ts b/packages/instant/src/util/analytics.ts
index dd6021453..b85c6cee2 100644
--- a/packages/instant/src/util/analytics.ts
+++ b/packages/instant/src/util/analytics.ts
@@ -185,17 +185,9 @@ export const analytics = {
...buyQuoteEventProperties(buyQuote),
fetchedVia,
}),
- trackQuoteError: (
- errorMessage: string,
- assetName: string,
- assetData: string,
- assetAmount: BigNumber,
- fetchedVia: QuoteFetchedVia,
- ) => {
+ trackQuoteError: (errorMessage: string, assetAmount: BigNumber, fetchedVia: QuoteFetchedVia) => {
trackingEventFnWithPayload(EventNames.QUOTE_ERROR)({
errorMessage,
- assetName,
- assetData,
assetAmount: assetAmount.toString(),
fetchedVia,
});
diff --git a/packages/instant/src/util/buy_quote_updater.ts b/packages/instant/src/util/buy_quote_updater.ts
index 3c982ed1f..d6c4bd71b 100644
--- a/packages/instant/src/util/buy_quote_updater.ts
+++ b/packages/instant/src/util/buy_quote_updater.ts
@@ -37,13 +37,7 @@ export const buyQuoteUpdater = {
} catch (error) {
if (options.dispatchErrors) {
dispatch(actions.setQuoteRequestStateFailure());
- analytics.trackQuoteError(
- error.message ? error.message : 'other',
- asset.metaData.name,
- asset.assetData,
- assetUnitAmount,
- options.fetchedVia,
- );
+ analytics.trackQuoteError(error.message ? error.message : 'other', assetUnitAmount, options.fetchedVia);
let errorMessage;
if (error.message === AssetBuyerError.InsufficientAssetLiquidity) {
const assetName = assetUtils.bestNameForAsset(asset, 'of this asset');