diff --git a/packages/design-system/lib/components/RateCard/Campaign/index.tsx b/packages/design-system/lib/components/RateCard/Campaign/index.tsx index 197fc88e2..f5cb483c7 100644 --- a/packages/design-system/lib/components/RateCard/Campaign/index.tsx +++ b/packages/design-system/lib/components/RateCard/Campaign/index.tsx @@ -18,7 +18,7 @@ interface CampaignRateCardProps { referenceRate: Rate comparisonRate?: Omit isHighlightedRate?: boolean - approximateRate: Rate + approximateRate?: Rate handleChange: () => void handleTermsClick?: () => void } @@ -85,7 +85,7 @@ export default function CampaignRateCard({

- {rate.price}{' '} + {`${rate.price} `} {rate.unit} @@ -99,7 +99,7 @@ export default function CampaignRateCard({

- {memberRate.price}{' '} + {`${memberRate.price} `} {memberRate.unit} @@ -121,16 +121,18 @@ export default function CampaignRateCard({ ) : null} -

- -

{approximateRate.label}

-
- -

- {approximateRate.price} {approximateRate.unit} -

-
-
+ {approximateRate ? ( +
+ +

{approximateRate.label}

+
+ +

+ {approximateRate.price} {approximateRate.unit} +

+
+
+ ) : null} {referenceRate ? (