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

Bugfix: Gift Article Radio Buttons #693

Merged
merged 2 commits into from
Jan 26, 2023
Merged

Conversation

willhoward
Copy link
Contributor

This PR fixes a bug whereby B2C users were erroneously seeing the 'Enterprise Sharing' option in the Gift Article radio buttons. This was happening because the specific logic controlling which radio buttons to display was quite confusing.

I've now separated out that logic. There's some minor repetition of code which I think is justified by making the logic clearer and easier to understand. I've also added a few code comment to explain it.

@willhoward willhoward requested a review from a team as a code owner January 25, 2023 14:42
@next-team next-team had a problem deploying to x-dash-bugfix-gift-arti-m9r3qr January 25, 2023 14:42 Failure
@next-team next-team temporarily deployed to x-dash-bugfix-gift-arti-m9r3qr January 25, 2023 14:44 Inactive
Copy link
Contributor

@asugar13 asugar13 left a comment

Choose a reason for hiding this comment

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

Can you please share screenshots of the differences before/after? Other than that, ready to approve

@willhoward
Copy link
Contributor Author

willhoward commented Jan 26, 2023

Sure! At the moment if you're a B2C customer and you're viewing a paid article you'll see this:

Screenshot 2023-01-26 at 12 16 37

This isn't right because B2C customers shouldn't be seeing the 'Multiple recipients' Enterprise Sharing option. Enterprise Sharing is only available to users who are B2B or FT Staff. After the change if you're a B2C customer and you're viewing a paid article you'll see this:

Screenshot 2023-01-26 at 12 19 16

Copy link
Contributor

@asugar13 asugar13 left a comment

Choose a reason for hiding this comment

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

looks good! thank you

@asugar13 asugar13 merged commit c0ee120 into main Jan 26, 2023
@asugar13 asugar13 deleted the bugfix-gift-article-radio-buttons branch January 26, 2023 15:08
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.

3 participants