Skip to content

Commit 73a32da

Browse files
authored
fix: Copy when changing plan from free plan (#3594)
1 parent 0d1dd11 commit 73a32da

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ describe('UpdateBlurb', () => {
113113
const seatsBlurb = await screen.findByText(
114114
'You are changing seats from 2 to [10]'
115115
)
116-
const billingBlurb = await screen.findByText(
116+
const billingBlurb = screen.queryByText(
117117
'You are changing your billing cycle from Monthly to [Annual]'
118118
)
119119
const immediateUpdate = await screen.findByText(
120120
/Your changes will take effect immediately./
121121
)
122122
expect(planBlurb).toBeInTheDocument()
123123
expect(seatsBlurb).toBeInTheDocument()
124-
expect(billingBlurb).toBeInTheDocument()
124+
expect(billingBlurb).not.toBeInTheDocument()
125125
expect(immediateUpdate).toBeInTheDocument()
126126
})
127127
})

src/pages/PlanPage/subRoutes/UpgradePlanPage/UpgradeForm/UpdateBlurb/UpdateBlurb.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const UpdateBlurb = ({
4848
{diffSeats && (
4949
<li className="pl-2">{`You are changing seats from ${currentPlan?.planUserCount} to [${seats}]`}</li>
5050
)}
51-
{diffBillingType && (
51+
{diffBillingType && !currentIsFree && (
5252
<li className="pl-2">{`You are changing your billing cycle from ${
5353
currentIsAnnual ? 'Annual' : 'Monthly'
5454
} to [${currentIsAnnual ? 'Monthly' : 'Annual'}]`}</li>

0 commit comments

Comments
 (0)