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

Plans: Fixes logic issue for when we were showing the confirmation notice #11693

Merged
merged 1 commit into from
Mar 2, 2017

Conversation

ebinnion
Copy link
Contributor

@ebinnion ebinnion commented Mar 1, 2017

Earlier this afternoon, I noticed an issue where I was improperly seeing this notice above the plans thank you card.

output

The issue seems to be that the code expected email_verified to be passed in as a prop, but it is really part of this.props.user. This PR fixes that.

To test:

Currently, the PlansThankYouCard only shows for new WP.com users, so this is not the easiest thing to test. But, you could checkout #11692 and then apply this fix on top of that PR to test.

@ebinnion ebinnion added [Feature] Plans & Upgrades All of the plans on WordPress.com and flow for upgrading plans. [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. [Type] Bug labels Mar 1, 2017
@ebinnion ebinnion self-assigned this Mar 1, 2017
@matticbot
Copy link
Contributor

@matticbot matticbot added the [Size] S Small sized issue label Mar 1, 2017
Copy link
Contributor

@gwwar gwwar left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

Next time in the summary you can add testing instructions to create a new user and follow nux, or modify https://github.com/Automattic/wp-calypso/blob/master/client/my-sites/upgrades/checkout-thank-you/index.jsx#L209 and visit http://calypso.localhost:3000/checkout/thank-you/:siteId:/:receiptId: of an earlier purchase.

@gwwar gwwar added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Mar 2, 2017
@ebinnion ebinnion merged commit 7e82ff7 into master Mar 2, 2017
@ebinnion ebinnion deleted the update/plans-confirmation-notice-logic branch March 2, 2017 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Plans & Upgrades All of the plans on WordPress.com and flow for upgrading plans. [Size] S Small sized issue [Type] Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants