diff --git a/support-frontend/assets/pages/supporter-plus-landing/components/amountsCard.tsx b/support-frontend/assets/pages/supporter-plus-landing/components/amountsCard.tsx index 4b4a1bc953..2aa0e5bd71 100644 --- a/support-frontend/assets/pages/supporter-plus-landing/components/amountsCard.tsx +++ b/support-frontend/assets/pages/supporter-plus-landing/components/amountsCard.tsx @@ -12,6 +12,7 @@ import { LinkButton, } from '@guardian/source/react-components'; import { useState } from 'react'; +import type { PriceCardPaymentInterval } from 'components/priceCards/priceCard'; import { OtherAmount } from '../../../components/otherAmount/otherAmount'; import { PriceCards } from '../../../components/priceCards/priceCards'; import type { @@ -90,6 +91,13 @@ export function AmountsCard({ ? `one-time-checkout?contribution=${amount}` : `checkout?product=Contribution&ratePlan=${billingPeriod}&contribution=${amount}`; + const contributionTypeToPaymentInterval: Partial< + Record + > = { + MONTHLY: 'month', + ANNUAL: 'year', + }; + return (
{ if (amount === 'other') { setSelectedAmount(amount);