diff --git a/src/billing/components/PayAsYouGo/PayAsYouGo.tsx b/src/billing/components/PayAsYouGo/PayAsYouGo.tsx index ea8645b371..ee4b461922 100644 --- a/src/billing/components/PayAsYouGo/PayAsYouGo.tsx +++ b/src/billing/components/PayAsYouGo/PayAsYouGo.tsx @@ -26,7 +26,7 @@ import {selectCurrentIdentity} from 'src/identity/selectors' const BillingPayAsYouGo: FC = () => { const {account} = useSelector(selectCurrentIdentity) - const directSignup = account.billingProvider === 'zuora' + const isdDirectSignup = account.billingProvider === 'zuora' return ( { > <> - {directSignup && } + {isdDirectSignup && } diff --git a/src/homepageExperience/ClickThroughAnnouncementHandler.tsx b/src/homepageExperience/ClickThroughAnnouncementHandler.tsx index 87776fb81e..702682d6a1 100644 --- a/src/homepageExperience/ClickThroughAnnouncementHandler.tsx +++ b/src/homepageExperience/ClickThroughAnnouncementHandler.tsx @@ -44,11 +44,11 @@ export const ClickThroughAnnouncementHandler: FC = () => { useEffect(() => { // Current Announcement: PAYG Pricing Increase // Audience: Cloud, Pay As You Go, Direct Signups - const paygAccount = account.type === 'pay_as_you_go' - const directSignup = account.billingProvider === 'zuora' - const audience = CLOUD && paygAccount && directSignup + const isPaygAccount = account.type === 'pay_as_you_go' + const isDirectSignup = account.billingProvider === 'zuora' + const isTargetAudience = CLOUD && isPaygAccount && isDirectSignup - if (audience) { + if (isTargetAudience) { setCurrentAnnouncement('payg-pricing-increase-announcement') if (announcementState['display']) {