diff --git a/components/x-gift-article/__tests__/x-gift-article.test.jsx b/components/x-gift-article/__tests__/x-gift-article.test.jsx index 57c491708..8c79cd068 100644 --- a/components/x-gift-article/__tests__/x-gift-article.test.jsx +++ b/components/x-gift-article/__tests__/x-gift-article.test.jsx @@ -19,7 +19,8 @@ const baseArgs = { title: 'Equinor and Daimler Truck cut Russia ties as Volvo and JLR halt car deliveries' }, id: 'base-gift-article-static-id', - enterpriseApiBaseUrl: `https://enterprise-sharing-api.ft.com` + enterpriseApiBaseUrl: `https://enterprise-sharing-api.ft.com`, + hasHighlights: true } describe('x-gift-article', () => { diff --git a/components/x-gift-article/src/v2/AdvancedSharingOptions.jsx b/components/x-gift-article/src/v2/AdvancedSharingOptions.jsx index 33eca9764..41d1632e2 100644 --- a/components/x-gift-article/src/v2/AdvancedSharingOptions.jsx +++ b/components/x-gift-article/src/v2/AdvancedSharingOptions.jsx @@ -11,7 +11,8 @@ export const AdvancedSharingOptions = (props) => { includeHighlights, enterpriseHasCredits, giftCredits, - showHighlightsRecipientMessage + showHighlightsRecipientMessage, + hasHighlights } = props const onValueChange = (event) => { if (event.target.value === ShareType.enterprise) { @@ -69,7 +70,7 @@ export const AdvancedSharingOptions = (props) => { )} {showHighlightsRecipientMessage && } - {showHighlightsCheckbox && ( + {showHighlightsCheckbox && hasHighlights && (