Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#169785262] Fix profile create and update #23

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

francescopersico
Copy link
Contributor

No description provided.

@francescopersico francescopersico merged commit 3646fe0 into master Nov 15, 2019
@francescopersico francescopersico deleted the 169785262-fix-profile-create-and-update branch November 15, 2019 18:03
@@ -44,8 +44,8 @@ export function retrievedProfileToExtendedProfile(
accepted_tos_version: profile.acceptedTosVersion,
blocked_inbox_or_channels: profile.blockedInboxOrChannels,
email: profile.email,
is_email_enabled: profile.isEmailEnabled === true,
is_email_validated: profile.isEmailValidated === true,
is_email_enabled: profile.isEmailEnabled !== false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why this change ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This property is undefined in old user profile (created before isEmailEnabled was available), but we still want to return an ExtendedProfile that has is_email_enabled set to true in this case.

Copy link
Contributor Author

@francescopersico francescopersico Nov 15, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same for is_email_validated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants