mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-30 11:59:02 +08:00
fix(analytics): fix identify
This commit is contained in:
parent
b8b1d9a067
commit
bc785c7b5d
2 changed files with 1 additions and 13 deletions
|
@ -14,16 +14,6 @@ function accountTypeForProvider(provider) {
|
||||||
return provider;
|
return provider;
|
||||||
}
|
}
|
||||||
|
|
||||||
function providerForAccountType(type) {
|
|
||||||
if (type === 'exchange') {
|
|
||||||
return 'eas';
|
|
||||||
}
|
|
||||||
if (type === 'imap') {
|
|
||||||
return 'custom';
|
|
||||||
}
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
class OnboardingStore extends NylasStore {
|
class OnboardingStore extends NylasStore {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
@ -109,8 +99,6 @@ class OnboardingStore extends NylasStore {
|
||||||
} else if (type === 'exchange') {
|
} else if (type === 'exchange') {
|
||||||
nextPage = "account-settings-exchange";
|
nextPage = "account-settings-exchange";
|
||||||
}
|
}
|
||||||
const provider = providerForAccountType(type)
|
|
||||||
Actions.recordUserEvent('Email Account Auth Started', {provider});
|
|
||||||
this._onSetAccountInfo(Object.assign({}, this._accountInfo, {type}));
|
this._onSetAccountInfo(Object.assign({}, this._accountInfo, {type}));
|
||||||
this._onMoveToPage(nextPage);
|
this._onMoveToPage(nextPage);
|
||||||
}
|
}
|
||||||
|
|
2
src/pro
2
src/pro
|
@ -1 +1 @@
|
||||||
Subproject commit 8464a3e7edb0179dfaa68ae7e557995f1890e01f
|
Subproject commit e6876cf0d6b14e8b7c5c68a29ce1a7735fe2e25e
|
Loading…
Reference in a new issue