From 75a785e683f26e991f8320fbcb3b26ee3aa85e55 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Sun, 12 Jun 2016 21:13:25 -0400 Subject: [PATCH] fix(identity): enable proper People support --- internal_packages/onboarding/lib/onboarding-helpers.es6 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal_packages/onboarding/lib/onboarding-helpers.es6 b/internal_packages/onboarding/lib/onboarding-helpers.es6 index 091d8b534..83eb6887c 100644 --- a/internal_packages/onboarding/lib/onboarding-helpers.es6 +++ b/internal_packages/onboarding/lib/onboarding-helpers.es6 @@ -68,10 +68,12 @@ export function buildGmailAuthURL(sessionKey) { } export function buildWelcomeURL(welcomeRoot, {source}) { - const identityId = IdentityStore.identityId(); - if (!identityId) { NylasEnv.reportError(new Error("buildWelcomeURL: Can't find Nylas ID")) } + const identity = IdentityStore.identity(); + if (!identity || !identity.id) { NylasEnv.reportError(new Error("buildWelcomeURL: Can't find Nylas ID")) } const query = { - n: base64url(identityId), + f: base64url(identity.firstname), + l: base64url(identity.lastname), + n: base64url(identity.id), utm_medium: "N1", } if (source) { query.utm_source = source }