@@ -13,7 +13,6 @@ import {
1313} from '../../util/CurrencyInfoHelpers'
1414import { getHistoricalFiatRate } from '../../util/exchangeRates'
1515import { infoServerData } from '../../util/network'
16- import { logEvent } from '../../util/tracking'
1716import {
1817 DECIMAL_PRECISION ,
1918 fuzzyTimeout ,
@@ -134,7 +133,14 @@ async function getInitialFiatValue(
134133export const amountQuoteFiatPlugin : FiatPluginFactory = async (
135134 params : FiatPluginFactoryArgs
136135) => {
137- const { account, guiPlugin, longPress = false , pluginUtils, showUi } = params
136+ const {
137+ account,
138+ guiPlugin,
139+ longPress = false ,
140+ pluginUtils,
141+ showUi,
142+ onLogEvent
143+ } = params
138144 const { pluginId } = guiPlugin
139145 const isLightAccount = account . username == null
140146
@@ -352,7 +358,7 @@ export const amountQuoteFiatPlugin: FiatPluginFactory = async (
352358 const isBuy = direction === 'buy'
353359 const disableInput = requireCrypto ? 1 : requireFiat ? 2 : undefined
354360
355- logEvent ( isBuy ? 'Buy_Quote' : 'Sell_Quote' )
361+ onLogEvent ( isBuy ? 'Buy_Quote' : 'Sell_Quote' )
356362
357363 const startingFiatAmount = isLightAccount
358364 ? DEFAULT_FIAT_AMOUNT_LIGHT_ACCOUNT
@@ -776,7 +782,7 @@ export const amountQuoteFiatPlugin: FiatPluginFactory = async (
776782 }
777783 }
778784
779- logEvent ( isBuy ? 'Buy_Quote_Next' : 'Sell_Quote_Next' )
785+ onLogEvent ( isBuy ? 'Buy_Quote_Next' : 'Sell_Quote_Next' )
780786 await bestQuote . approveQuote ( { showUi, coreWallet } )
781787 }
782788 }
0 commit comments