diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-07-12 07:50:00 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-07-12 07:50:00 +0800 |
commit | 0941e0a929f2fe3ef6d0cf1de5a1274f5f45f031 (patch) | |
tree | 631a88686b5f2fa2f436daac18643c2a055e9311 /packages/website/ts/redux | |
parent | 1ee78062d7731b35e47c0d4c4e30a68628f364a9 (diff) | |
download | dexon-sol-tools-0941e0a929f2fe3ef6d0cf1de5a1274f5f45f031.tar.gz dexon-sol-tools-0941e0a929f2fe3ef6d0cf1de5a1274f5f45f031.tar.zst dexon-sol-tools-0941e0a929f2fe3ef6d0cf1de5a1274f5f45f031.zip |
Add no-floating-promises ignore comments
Diffstat (limited to 'packages/website/ts/redux')
-rw-r--r-- | packages/website/ts/redux/analyticsMiddleware.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/website/ts/redux/analyticsMiddleware.ts b/packages/website/ts/redux/analyticsMiddleware.ts index 2778445e7..e848ca3fd 100644 --- a/packages/website/ts/redux/analyticsMiddleware.ts +++ b/packages/website/ts/redux/analyticsMiddleware.ts @@ -8,28 +8,33 @@ export const analyticsMiddleware: Middleware = store => next => action => { const nextState = (store.getState() as any) as State; switch (action.type) { case ActionTypes.UpdateInjectedProviderName: + // tslint:disable-next-line:no-floating-promises analytics.addEventPropertiesAsync({ injectedProviderName: nextState.injectedProviderName, }); break; case ActionTypes.UpdateNetworkId: + // tslint:disable-next-line:no-floating-promises analytics.addEventPropertiesAsync({ networkId: nextState.networkId, }); break; case ActionTypes.UpdateUserAddress: + // tslint:disable-next-line:no-floating-promises analytics.addUserPropertiesAsync({ ethAddress: nextState.userAddress, }); break; case ActionTypes.UpdateUserEtherBalance: if (nextState.userEtherBalanceInWei) { + // tslint:disable-next-line:no-floating-promises analytics.addUserPropertiesAsync({ ethBalance: nextState.userEtherBalanceInWei.toString(), }); } break; case ActionTypes.UpdatePortalOnboardingStep: + // tslint:disable-next-line:no-floating-promises analytics.trackAsync('Update Onboarding Step', { stepIndex: nextState.portalOnboardingStep, }); |