aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/containers
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-11-21 14:34:57 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-11-21 14:38:49 +0800
commit351e0e6f5f2add25c4d779356a8cfd4aefb305cb (patch)
treef9feebf1fce79c1b76f10c2040551ed4a6052154 /packages/instant/src/containers
parent15f05733be45e05974972c80c4fa8437a62633e2 (diff)
downloaddexon-sol-tools-351e0e6f5f2add25c4d779356a8cfd4aefb305cb.tar
dexon-sol-tools-351e0e6f5f2add25c4d779356a8cfd4aefb305cb.tar.gz
dexon-sol-tools-351e0e6f5f2add25c4d779356a8cfd4aefb305cb.tar.bz2
dexon-sol-tools-351e0e6f5f2add25c4d779356a8cfd4aefb305cb.tar.lz
dexon-sol-tools-351e0e6f5f2add25c4d779356a8cfd4aefb305cb.tar.xz
dexon-sol-tools-351e0e6f5f2add25c4d779356a8cfd4aefb305cb.tar.zst
dexon-sol-tools-351e0e6f5f2add25c4d779356a8cfd4aefb305cb.zip
feat(instant): implement account related events
Diffstat (limited to 'packages/instant/src/containers')
-rw-r--r--packages/instant/src/containers/connected_account_payment_method.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/instant/src/containers/connected_account_payment_method.ts b/packages/instant/src/containers/connected_account_payment_method.ts
index eacbadfca..cdeb49a25 100644
--- a/packages/instant/src/containers/connected_account_payment_method.ts
+++ b/packages/instant/src/containers/connected_account_payment_method.ts
@@ -12,6 +12,7 @@ import { Action, actions } from '../redux/actions';
import { asyncData } from '../redux/async_data';
import { State } from '../redux/reducer';
import { Network, Omit, OperatingSystem, ProviderState, StandardSlidingPanelContent } from '../types';
+import { analytics } from '../util/analytics';
import { envUtil } from '../util/env';
export interface ConnectedAccountPaymentMethodProps {}
@@ -40,8 +41,11 @@ const mapDispatchToProps = (
ownProps: ConnectedAccountPaymentMethodProps,
): ConnectedDispatch => ({
openInstallWalletPanel: () => dispatch(actions.openStandardSlidingPanel(StandardSlidingPanelContent.InstallWallet)),
- unlockWalletAndDispatchToStore: async (providerState: ProviderState) =>
- asyncData.fetchAccountInfoAndDispatchToStore(providerState, dispatch, true),
+ unlockWalletAndDispatchToStore: (providerState: ProviderState) => {
+ analytics.trackAccountUnlockRequested();
+ // tslint:disable-next-line:no-floating-promises
+ asyncData.fetchAccountInfoAndDispatchToStore(providerState, dispatch, true);
+ },
});
const mergeProps = (