Skip to content

Commit

Permalink
fix: Copy when changing plan from free plan (#3594)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-sentry authored Dec 19, 2024
1 parent 0d1dd11 commit 73a32da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ describe('UpdateBlurb', () => {
const seatsBlurb = await screen.findByText(
'You are changing seats from 2 to [10]'
)
const billingBlurb = await screen.findByText(
const billingBlurb = screen.queryByText(
'You are changing your billing cycle from Monthly to [Annual]'
)
const immediateUpdate = await screen.findByText(
/Your changes will take effect immediately./
)
expect(planBlurb).toBeInTheDocument()
expect(seatsBlurb).toBeInTheDocument()
expect(billingBlurb).toBeInTheDocument()
expect(billingBlurb).not.toBeInTheDocument()
expect(immediateUpdate).toBeInTheDocument()
})
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const UpdateBlurb = ({
{diffSeats && (
<li className="pl-2">{`You are changing seats from ${currentPlan?.planUserCount} to [${seats}]`}</li>
)}
{diffBillingType && (
{diffBillingType && !currentIsFree && (
<li className="pl-2">{`You are changing your billing cycle from ${
currentIsAnnual ? 'Annual' : 'Monthly'
} to [${currentIsAnnual ? 'Monthly' : 'Annual'}]`}</li>
Expand Down

0 comments on commit 73a32da

Please sign in to comment.