fix(analytics): fix errors in onboarding flow

This commit is contained in:
Evan Morikawa 2016-06-02 11:16:41 +01:00
parent 7e0c513805
commit b5a53a49ee

View file

@ -60,13 +60,13 @@ export function buildGmailAuthURL(sessionKey) {
}
export function buildWelcomeURL() {
const identity = IdentityStore().identity();
const identity = IdentityStore.identity();
if (!identity) { NylasEnv.reportError(new Error("Can't find Nylas ID")) }
return url.format({
protocol: 'https',
host: 'nylas.com/welcome',
query: {
n: base64url(id),
n: base64url(identity.id),
},
});
}