Skip to content

Commit f8e9e07

Browse files
committed
fix(billing): Use sentence case for on-demand budget terms
Addresses PR feedback to keep budget term capitalization in sentence case for step titles and cart text, except when at the beginning of a sentence.
1 parent 8765300 commit f8e9e07

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

static/gsApp/views/amCheckout/cart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function ItemsSummary({activePlan, formData}: ItemsSummaryProps) {
239239
budgetTerm:
240240
activePlan.budgetTerm === 'pay-as-you-go'
241241
? 'PAYG'
242-
: displayBudgetName(activePlan, {title: true}),
242+
: displayBudgetName(activePlan),
243243
})
244244
) : (
245245
// "Unlock with on-demand" gets cut off in non-chonk theme
@@ -248,7 +248,7 @@ function ItemsSummary({activePlan, formData}: ItemsSummaryProps) {
248248
budgetTerm:
249249
activePlan.budgetTerm === 'pay-as-you-go'
250250
? 'PAYG'
251-
: displayBudgetName(activePlan, {title: true}),
251+
: displayBudgetName(activePlan),
252252
})}
253253
</Text>
254254
)}

static/gsApp/views/amCheckout/index.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ function assertCheckoutV3Steps(tier: PlanTier) {
2929
[
3030
'Build your plan',
3131
[PlanTier.AM1, PlanTier.AM2].includes(tier)
32-
? /Set your On-Demand limit/
33-
: /Set your Pay-as-you-go limit/,
32+
? /Set your on-demand limit/
33+
: /Set your pay-as-you-go limit/,
3434
'Pay monthly or yearly, your choice',
3535
'Edit billing information',
3636
].forEach(step => {

static/gsApp/views/amCheckout/steps/setSpendLimit.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function SetSpendCap({
5656
organization={organization}
5757
header={
5858
<StepHeader
59-
title={t('Set your %s limit', displayBudgetName(activePlan, {title: true}))}
59+
title={t('Set your %s limit', displayBudgetName(activePlan))}
6060
isActive
6161
stepNumber={stepNumber}
6262
isCompleted={false}

0 commit comments

Comments
 (0)