fix(analytics): fix identify

This commit is contained in:
Evan Morikawa 2016-06-07 18:19:19 -07:00
parent b335856d6e
commit 5214294e6f
2 changed files with 1 additions and 13 deletions

View file

@ -14,16 +14,6 @@ function accountTypeForProvider(provider) {
return provider;
}
function providerForAccountType(type) {
if (type === 'exchange') {
return 'eas';
}
if (type === 'imap') {
return 'custom';
}
return type;
}
class OnboardingStore extends NylasStore {
constructor() {
super();
@ -109,8 +99,6 @@ class OnboardingStore extends NylasStore {
} else if (type === 'exchange') {
nextPage = "account-settings-exchange";
}
const provider = providerForAccountType(type)
Actions.recordUserEvent('Email Account Auth Started', {provider});
this._onSetAccountInfo(Object.assign({}, this._accountInfo, {type}));
this._onMoveToPage(nextPage);
}

@ -1 +1 @@
Subproject commit 8464a3e7edb0179dfaa68ae7e557995f1890e01f
Subproject commit e6876cf0d6b14e8b7c5c68a29ce1a7735fe2e25e