aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/onboarding
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-07-13 07:57:03 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-07-13 07:57:03 +0800
commit1df074b73e05adf669b0cedc4bb1473e9e5631db (patch)
treee32cb0adcfcc5df9b7d2b562cfa17cdd86003567 /packages/website/ts/components/onboarding
parent0941e0a929f2fe3ef6d0cf1de5a1274f5f45f031 (diff)
downloaddexon-0x-contracts-1df074b73e05adf669b0cedc4bb1473e9e5631db.tar.gz
dexon-0x-contracts-1df074b73e05adf669b0cedc4bb1473e9e5631db.tar.zst
dexon-0x-contracts-1df074b73e05adf669b0cedc4bb1473e9e5631db.zip
Make Analytics API non-async
Diffstat (limited to 'packages/website/ts/components/onboarding')
-rw-r--r--packages/website/ts/components/onboarding/portal_onboarding_flow.tsx6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
index e051d86d9..94a6338ee 100644
--- a/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
+++ b/packages/website/ts/components/onboarding/portal_onboarding_flow.tsx
@@ -224,8 +224,7 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp
(this.props.stepIndex === 0 && !this.props.isRunning && this.props.blockchainIsLoaded) ||
(!this.props.isRunning && !this.props.hasBeenClosed && this.props.blockchainIsLoaded)
) {
- // tslint:disable-next-line:no-floating-promises
- analytics.trackAsync('Onboarding Started', {
+ analytics.track('Onboarding Started', {
reason: 'automatic',
stepIndex: this.props.stepIndex,
});
@@ -237,8 +236,7 @@ class PlainPortalOnboardingFlow extends React.Component<PortalOnboardingFlowProp
}
private _closeOnboarding(): void {
this.props.updateIsRunning(false);
- // tslint:disable-next-line:no-floating-promises
- analytics.trackAsync('OnboardingClosed', {
+ analytics.track('OnboardingClosed', {
stepIndex: this.props.stepIndex,
});
}