Skip to content

Commit

Permalink
Add: userflow start tracking users
Browse files Browse the repository at this point in the history
  • Loading branch information
rdig committed Dec 7, 2021
1 parent 17d8a43 commit 1959dfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/modules/core/sagas/setupUserContext.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { all, call, fork, put } from 'redux-saga/effects';
import { formatEther } from 'ethers/utils';
import userflow from 'userflow.js';

import { WalletMethod } from '~immutable/index';
import { createAddress } from '~utils/web3';
Expand Down Expand Up @@ -126,6 +127,10 @@ export default function* setupUserContext(

const colonyManager = yield call(reinitializeColonyManager);

if (method !== WalletMethod.Ethereal) {
yield userflow.identify(walletAddress);
}

yield call(getGasPrices);

const ens = TEMP_getContext(ContextModule.ENS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ const AvatarDropdownPopover = ({
<NavLink
to={{
pathname: CREATE_USER_ROUTE,
state: { colonyURL: `/colony/${colony?.colonyName}` },
state: colony?.colonyName
? { colonyURL: `/colony/${colony?.colonyName}` }
: {},
}}
text={MSG.buttonGetStarted}
/>
Expand Down

0 comments on commit 1959dfb

Please sign in to comment.