diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-13 07:57:03 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-13 07:57:03 +0800 |
commit | 1df074b73e05adf669b0cedc4bb1473e9e5631db (patch) | |
tree | e32cb0adcfcc5df9b7d2b562cfa17cdd86003567 /packages/website/ts/components/generate_order | |
parent | 0941e0a929f2fe3ef6d0cf1de5a1274f5f45f031 (diff) | |
download | dexon-sol-tools-1df074b73e05adf669b0cedc4bb1473e9e5631db.tar.gz dexon-sol-tools-1df074b73e05adf669b0cedc4bb1473e9e5631db.tar.zst dexon-sol-tools-1df074b73e05adf669b0cedc4bb1473e9e5631db.zip |
Make Analytics API non-async
Diffstat (limited to 'packages/website/ts/components/generate_order')
-rw-r--r-- | packages/website/ts/components/generate_order/generate_order_form.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/website/ts/components/generate_order/generate_order_form.tsx b/packages/website/ts/components/generate_order/generate_order_form.tsx index 524960aa7..c14ee8659 100644 --- a/packages/website/ts/components/generate_order/generate_order_form.tsx +++ b/packages/website/ts/components/generate_order/generate_order_form.tsx @@ -268,8 +268,7 @@ export class GenerateOrderForm extends React.Component<GenerateOrderFormProps, G const signedOrder = await this._signTransactionAsync(); const doesSignedOrderExist = !_.isUndefined(signedOrder); if (doesSignedOrderExist) { - // tslint:disable-next-line:no-floating-promises - analytics.trackOrderEventAsync('Sign Order Success', signedOrder); + analytics.trackOrderEvent('Sign Order Success', signedOrder); this.setState({ globalErrMsg: '', shouldShowIncompleteErrs: false, @@ -282,8 +281,7 @@ export class GenerateOrderForm extends React.Component<GenerateOrderFormProps, G globalErrMsg = 'You must enable wallet communication'; this.props.dispatcher.updateShouldBlockchainErrDialogBeOpen(true); } - // tslint:disable-next-line:no-floating-promises - analytics.trackAsync('Sign Order Failure', { + analytics.track('Sign Order Failure', { makerTokenAmount: debitToken.amount.toString(), makerToken: this.props.tokenByAddress[debitToken.address].symbol, takerTokenAmount: receiveToken.amount.toString(), |