diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-12 06:39:12 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-12 06:39:12 +0800 |
commit | 098322c56475581df5bd80e12cb6c511963e4daf (patch) | |
tree | bed34b4b9b9be4ea124a7a3247db02e8e39d7ba2 /packages/website/ts/components/fill_order.tsx | |
parent | 9131a72a47690912db9b536186d05120daabd115 (diff) | |
download | dexon-0x-contracts-098322c56475581df5bd80e12cb6c511963e4daf.tar dexon-0x-contracts-098322c56475581df5bd80e12cb6c511963e4daf.tar.gz dexon-0x-contracts-098322c56475581df5bd80e12cb6c511963e4daf.tar.bz2 dexon-0x-contracts-098322c56475581df5bd80e12cb6c511963e4daf.tar.lz dexon-0x-contracts-098322c56475581df5bd80e12cb6c511963e4daf.tar.xz dexon-0x-contracts-098322c56475581df5bd80e12cb6c511963e4daf.tar.zst dexon-0x-contracts-098322c56475581df5bd80e12cb6c511963e4daf.zip |
Integrate heap analytics
Diffstat (limited to 'packages/website/ts/components/fill_order.tsx')
-rw-r--r-- | packages/website/ts/components/fill_order.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/website/ts/components/fill_order.tsx b/packages/website/ts/components/fill_order.tsx index 46e33061f..25d21c3dd 100644 --- a/packages/website/ts/components/fill_order.tsx +++ b/packages/website/ts/components/fill_order.tsx @@ -1,5 +1,5 @@ import { getOrderHashHex, isValidSignature } from '@0xproject/order-utils'; -import { colors, constants as sharedConstants } from '@0xproject/react-shared'; +import { colors } from '@0xproject/react-shared'; import { Order as ZeroExOrder } from '@0xproject/types'; import { BigNumber, logUtils } from '@0xproject/utils'; import { Web3Wrapper } from '@0xproject/web3-wrapper'; @@ -508,7 +508,7 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { } private _trackOrderEvent(eventName: string): void { const parsedOrder = this.state.parsedOrder; - analytics.trackOrderEvent(eventName, parsedOrder); + analytics.trackOrderEventAsync(eventName, parsedOrder); } private async _onFillOrderClickFireAndForgetAsync(): Promise<void> { if (this.props.blockchainErr !== BlockchainErrs.NoError || _.isEmpty(this.props.userAddress)) { @@ -630,8 +630,6 @@ export class FillOrder extends React.Component<FillOrderProps, FillOrderState> { }); return; } - const networkName = sharedConstants.NETWORK_NAME_BY_ID[this.props.networkId]; - const eventLabel = `${parsedOrder.metadata.makerToken.symbol}-${networkName}`; try { await this.props.blockchain.cancelOrderAsync(signedOrder, availableTakerTokenAmount); this.setState({ |