Skip to content

Commit d82a5a9

Browse files
switched the logic around so we use the aboveTablet boolean to show the longer benefits if true
1 parent 22eb30f commit d82a5a9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

dotcom-rendering/src/components/marketing/epics/ThreeTierChoiceCardData.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { isUndefined } from '@guardian/libs';
22
import type { ChoiceInfo } from './ThreeTierChoiceCards';
33

44
export const ChoiceCardTestData_REGULAR = (
5-
shorterBenefits: boolean,
5+
longerBenefits: boolean,
66
): ChoiceInfo[] => [
77
{
88
supportTier: 'Contribution',
@@ -39,9 +39,9 @@ export const ChoiceCardTestData_REGULAR = (
3939
},
4040
benefitsLabel: 'All-access digital',
4141
benefits: () =>
42-
shorterBenefits
43-
? shorterSupporterPlusBenefits
44-
: fullSupporterPlusBenefits,
42+
longerBenefits
43+
? fullSupporterPlusBenefits
44+
: shorterSupporterPlusBenefits,
4545
recommended: true,
4646
},
4747
{
@@ -54,7 +54,7 @@ export const ChoiceCardTestData_REGULAR = (
5454
];
5555

5656
export const ChoiceCardTestData_US = (
57-
shorterBenefits: boolean,
57+
longerBenefits: boolean,
5858
): ChoiceInfo[] => [
5959
{
6060
supportTier: 'Contribution',
@@ -72,9 +72,9 @@ export const ChoiceCardTestData_US = (
7272
`Support ${currencySymbol}${amount}/month`,
7373
benefitsLabel: 'All-access digital',
7474
benefits: () =>
75-
shorterBenefits
76-
? shorterSupporterPlusBenefits
77-
: fullSupporterPlusBenefits,
75+
longerBenefits
76+
? fullSupporterPlusBenefits
77+
: shorterSupporterPlusBenefits,
7878
recommended: true,
7979
},
8080
{

0 commit comments

Comments
 (0)