Closed willhoward closed 1 year ago
Sure! At the moment if you're a B2C customer and you're viewing a paid article you'll see this:
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:
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.